public class TPreference
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCEPT_ENCODING
The key for the Accept-Encoding preference.
|
static java.lang.String |
CHECK_SERVER_AVAILABILITY
The boooelan key that indicates whether the server availability will be checked for each new TConnection.
|
static java.lang.String |
DEFAULT_OBJECT_MODEL
The key for the default object model.
|
static java.lang.String |
DISABLE_INO_DEFINATION
The pattern to configure the output string used by the duration logging for the messages.
|
static java.lang.String |
DURATION_LOGGING
Indicates whether duration logging is enabled in generally when starting.
|
static java.lang.String |
DURATION_LOGGING_LEVEL
The level used by the duration logging for the messages sent to the underlying log4j logger.
|
static java.lang.String |
DURATION_LOGGING_PATTERN
The pattern to configure the output string used by the duration logging for the messages.
|
static java.lang.String |
ENCODING
The key for the Encoding preference.
|
static java.lang.String |
GET_SERVER_VERSION
The boooelan key that indicates whether the server version will be checked for each TSystemAccessor.getServerVersion.
|
static java.lang.String |
HTTP_URL_CONNECTION_AUTO_DISCONNECT
The key that indicates whether a HTTPUrlConnection will be disconnected() automatically, ie.
|
static java.lang.String |
INVOCATION_MODIFIER
The key that indicates the use of an alternate invocation handler to be used.
|
static java.lang.String |
IS_OPTIMIZATION_ON
The boooelan key that indicates whether optimizations will be made.
|
static java.lang.String |
LOCAL_TRANSACTION_CONNECT_MODE
The key that indicates the kind of connect command value that will be used when connecting to a local transaction.
|
static java.lang.String |
USE_APACHE_LOAD_EXTRNAL_DTD
The key for the apache load external dtd feature.
|
static java.lang.String |
USE_INVALIDATABLE_ACCESSORS
The key that indicates if invalidatable accessors should generally be used.
|
static java.lang.String |
USE_RETRY_HANDLER
The key that indicates if retry handlers are used.
|
static java.lang.String |
USERID_DOMAIN_SEPARATOR
The key that indicates the kind of separation character used to serarate userID and domain name for ahthentication.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAcceptEncoding()
Gets the ACCEPT_ENCODING HTTP Header property.
|
boolean |
getAutoDisconnectHttpUrlConnection()
Gets the ´auto´ disconnect property for an HttpUrlConnection.
|
boolean |
getCheckServerAvailability()
Gets the ´check server availablity´ property.
|
int |
getDefaultBufferSize()
Gets the default buffer size that can be used for any type of action that
needs to use a buffer of variabel size.
|
java.lang.Object |
getDefaultObjectModel()
Gets the default object model that is currently set.
|
boolean |
getDisableINO()
Gets the disable ino definations property.
|
java.lang.String |
getDurationLogging()
Gets the duration logging property.
|
java.lang.String |
getDurationLoggingLevel()
Gets the duration logging level property.
|
java.lang.String |
getDurationLoggingPattern()
Gets the duration logging pattern property.
|
java.lang.String |
getEncoding()
Gets the encoding preference.
|
boolean |
getGetServerVersion()
Gets the ´get server version´ property.
|
static TPreference |
getInstance()
Gets the singleton instance.
|
java.lang.String |
getInvocationModifier()
Gets the invocation modifier needed to handle alternate invocation handlers for the same protocol.
|
boolean |
getIsOptimizationOn()
Gets the ´is optimization on´ property.
|
java.lang.String |
getLocalTransactionConnectMode()
Get the connect command value that will be used when connecting to a local transaction.
|
java.lang.String |
getUserIdDomainSeparator()
Gets the separator character used to serarate userID and domain name for ahthentication
|
void |
setAcceptEncoding(java.lang.String acceptEncoding)
Sets the ACCEPT_ENCODING HTTP Header property.
|
void |
setAutoDisconnectHttpUrlConnection(boolean autoDisconnect)
Sets the ´auto´ disconnect property for an HttpUrlConnection.
|
void |
setCheckServerAvailability(boolean checkEachConnection)
If true each TConnection.newConnection() tries to reach the server with a PING.
|
void |
setDisableINO(boolean state)
Sets the disable ino definations property.
|
void |
setDurationLogging(java.lang.String logging)
Sets the duration logging property.
|
void |
setDurationLoggingLevel(java.lang.String level)
Sets the duration logging level property.
|
void |
setDurationLoggingPattern(java.lang.String pattern)
Sets the duration logging pattern property.
|
void |
setGetServerVersion(boolean getOnEachCall)
If true each TSystemAccessor.getServerVersion() performs a version command on Tamino to retrieve the version number.Connection.newConnection() tries to reach the server with a PING.
|
void |
setInvocationModifier(java.lang.String modifier)
Gets the invocation modifier needed to handle alternate invocation handlers for the same protocol.
|
void |
setIsOptimizationOn(boolean on)
If true the API will try to perform optimizations.
|
void |
setLocalTransactionConnectMode(java.lang.String localTransactionConnectMode)
Set the connect command value that will be used when connecting to a local transaction.
|
void |
setUseApacheLoadExternalDTD(boolean useApacheLoadExternalDTD)
Set the apache load external DTD feature.
|
void |
setUseInvalidatableAccessorsIsEnabled(boolean useInvalidatableAccessors)
Deprecated.
This is no longer neccessary since every accessor is now ´invalidatable´.
|
void |
setUseRetryHandler(boolean useRetryHandler)
Set the use of retry handler.
|
boolean |
useApacheLoadExternalDTD()
Indicates if the apache load external DTD feature shall be used or not!
|
boolean |
useInvalidatableAccessorsIsEnabled()
Deprecated.
This is no longer neccessary since every accessor is now ´invalidatable´.
|
boolean |
useRetryHandler()
Indicates if the use of retry handler has been enabled.
|
public static final java.lang.String USE_APACHE_LOAD_EXTRNAL_DTD
public static final java.lang.String ENCODING
public static final java.lang.String ACCEPT_ENCODING
public static final java.lang.String DEFAULT_OBJECT_MODEL
public static final java.lang.String USE_INVALIDATABLE_ACCESSORS
public static final java.lang.String USE_RETRY_HANDLER
public static final java.lang.String INVOCATION_MODIFIER
public static final java.lang.String USERID_DOMAIN_SEPARATOR
public static final java.lang.String LOCAL_TRANSACTION_CONNECT_MODE
public static final java.lang.String HTTP_URL_CONNECTION_AUTO_DISCONNECT
public static final java.lang.String CHECK_SERVER_AVAILABILITY
public static final java.lang.String GET_SERVER_VERSION
public static final java.lang.String IS_OPTIMIZATION_ON
public static final java.lang.String DURATION_LOGGING
public static final java.lang.String DURATION_LOGGING_LEVEL
public static final java.lang.String DURATION_LOGGING_PATTERN
public static final java.lang.String DISABLE_INO_DEFINATION
public static TPreference getInstance()
public java.lang.String getEncoding()
public java.lang.Object getDefaultObjectModel()
public int getDefaultBufferSize()
public java.lang.String getInvocationModifier()
public void setInvocationModifier(java.lang.String modifier)
public boolean useInvalidatableAccessorsIsEnabled()
public boolean useApacheLoadExternalDTD()
public boolean useRetryHandler()
public void setUseInvalidatableAccessorsIsEnabled(boolean useInvalidatableAccessors)
useInvalidatableAccessors
- true/falsepublic void setUseApacheLoadExternalDTD(boolean useApacheLoadExternalDTD)
useApacheLoadExternalDTD
- true/falsepublic void setUseRetryHandler(boolean useRetryHandler)
public java.lang.String getUserIdDomainSeparator()
public void setLocalTransactionConnectMode(java.lang.String localTransactionConnectMode)
localTransactionConnectMode
- the connect command value as a string. e.g. "migrate".public java.lang.String getLocalTransactionConnectMode()
public void setAutoDisconnectHttpUrlConnection(boolean autoDisconnect)
autoDisconnect
- disconnect a used HttpUrlConnection or not.public boolean getAutoDisconnectHttpUrlConnection()
public void setCheckServerAvailability(boolean checkEachConnection)
checkEachConnection
- check each Connection or not.public boolean getCheckServerAvailability()
public void setGetServerVersion(boolean getOnEachCall)
getOnEachCall
- get on each Call.public boolean getGetServerVersion()
public void setIsOptimizationOn(boolean on)
on
- true try, otherwise do nothing special.public boolean getIsOptimizationOn()
public void setDurationLogging(java.lang.String logging)
logging
- the duration logging propertypublic java.lang.String getDurationLogging()
public void setDurationLoggingLevel(java.lang.String level)
level
- the duration logging level propertypublic java.lang.String getDurationLoggingLevel()
public void setDurationLoggingPattern(java.lang.String pattern)
pattern
- the duration logging pattern propertypublic java.lang.String getDurationLoggingPattern()
public void setDisableINO(boolean state)
state
- - defines the status of ino definationspublic boolean getDisableINO()
public void setAcceptEncoding(java.lang.String acceptEncoding)
state
- - defines the status of ACCEPT_ENCODINGpublic java.lang.String getAcceptEncoding()
Copyright (c) 2017 Software AG. All Rights Reserved.