Package fr.gouv.vitam.common.client
Enum VitamRestEasyConfiguration
- java.lang.Object
-
- java.lang.Enum<VitamRestEasyConfiguration>
-
- fr.gouv.vitam.common.client.VitamRestEasyConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VitamRestEasyConfiguration>
public enum VitamRestEasyConfiguration extends java.lang.Enum<VitamRestEasyConfiguration>
Various key for RestEsy configuration
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CACHE_ENABLED
Cache enableCHUNKED_ENCODING_SIZE
Chunked encoding sizeCONNECT_TIMEOUT
Connect timeoutCONNECTION_MANAGER
Apache Connection ManagerCONNECTION_MANAGER_SHARED
is connection manager sharedCONNECTIONREQUESTTIMEOUT
connectionRequestTimeoutCONNECTTIMEOUT
connectTimeoutCONTENTCOMPRESSIONENABLED
contentCompressionEnabledCREDENTIALS_PROVIDER
Credential providersDISABLE_AUTOMATIC_RETRIES
Disable automatic retriesPROXY_PASSWORD
PROXY_PASSWORDPROXY_URI
PROXY_URIPROXY_USERNAME
PROXY_USERNAMEREAD_TIMEOUT
Read TimeoutRECV_BUFFER_SIZE
Recv buffer decoding sizeREQUEST_CONFIG
Request configurationREQUEST_ENTITY_PROCESSING
Request EntityProcessingSOCKETTIMEOUT
socketTimeoutSSL_CONTEXT
SslContext
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInt(java.util.Map<VitamRestEasyConfiguration,java.lang.Object> config, int defaultValue)
java.lang.Object
getObject(java.util.Map<VitamRestEasyConfiguration,java.lang.Object> config)
java.lang.String
getString(java.util.Map<VitamRestEasyConfiguration,java.lang.Object> config, java.lang.String defaultValue)
boolean
isTrue(java.util.Map<VitamRestEasyConfiguration,java.lang.Object> config)
static VitamRestEasyConfiguration
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VitamRestEasyConfiguration[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTION_MANAGER
public static final VitamRestEasyConfiguration CONNECTION_MANAGER
Apache Connection Manager
-
CHUNKED_ENCODING_SIZE
public static final VitamRestEasyConfiguration CHUNKED_ENCODING_SIZE
Chunked encoding size
-
RECV_BUFFER_SIZE
public static final VitamRestEasyConfiguration RECV_BUFFER_SIZE
Recv buffer decoding size
-
REQUEST_ENTITY_PROCESSING
public static final VitamRestEasyConfiguration REQUEST_ENTITY_PROCESSING
Request EntityProcessing
-
CONNECT_TIMEOUT
public static final VitamRestEasyConfiguration CONNECT_TIMEOUT
Connect timeout
-
READ_TIMEOUT
public static final VitamRestEasyConfiguration READ_TIMEOUT
Read Timeout
-
CONNECTIONREQUESTTIMEOUT
public static final VitamRestEasyConfiguration CONNECTIONREQUESTTIMEOUT
connectionRequestTimeout
-
CONNECTTIMEOUT
public static final VitamRestEasyConfiguration CONNECTTIMEOUT
connectTimeout
-
SOCKETTIMEOUT
public static final VitamRestEasyConfiguration SOCKETTIMEOUT
socketTimeout
-
CONNECTION_MANAGER_SHARED
public static final VitamRestEasyConfiguration CONNECTION_MANAGER_SHARED
is connection manager shared
-
DISABLE_AUTOMATIC_RETRIES
public static final VitamRestEasyConfiguration DISABLE_AUTOMATIC_RETRIES
Disable automatic retries
-
REQUEST_CONFIG
public static final VitamRestEasyConfiguration REQUEST_CONFIG
Request configuration
-
SSL_CONTEXT
public static final VitamRestEasyConfiguration SSL_CONTEXT
SslContext
-
CREDENTIALS_PROVIDER
public static final VitamRestEasyConfiguration CREDENTIALS_PROVIDER
Credential providers
-
PROXY_URI
public static final VitamRestEasyConfiguration PROXY_URI
PROXY_URI
-
PROXY_USERNAME
public static final VitamRestEasyConfiguration PROXY_USERNAME
PROXY_USERNAME
-
PROXY_PASSWORD
public static final VitamRestEasyConfiguration PROXY_PASSWORD
PROXY_PASSWORD
-
CONTENTCOMPRESSIONENABLED
public static final VitamRestEasyConfiguration CONTENTCOMPRESSIONENABLED
contentCompressionEnabled
-
CACHE_ENABLED
public static final VitamRestEasyConfiguration CACHE_ENABLED
Cache enable
-
-
Field Detail
-
CHUNKED
public static final java.lang.String CHUNKED
Chunk mode- See Also:
- Constant Field Values
-
BUFFERED
public static final java.lang.String BUFFERED
Buffer mode- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static VitamRestEasyConfiguration[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VitamRestEasyConfiguration c : VitamRestEasyConfiguration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VitamRestEasyConfiguration valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isTrue
public final boolean isTrue(java.util.Map<VitamRestEasyConfiguration,java.lang.Object> config)
- Parameters:
config
-- Returns:
- True of the associated Map contains True for this key
-
getObject
public final java.lang.Object getObject(java.util.Map<VitamRestEasyConfiguration,java.lang.Object> config)
- Parameters:
config
-- Returns:
- The Object of the associated Map for this key
-
getString
public final java.lang.String getString(java.util.Map<VitamRestEasyConfiguration,java.lang.Object> config, java.lang.String defaultValue)
- Parameters:
config
-defaultValue
-- Returns:
- The String of the associated Map for this key or default value if not found
-
getInt
public final int getInt(java.util.Map<VitamRestEasyConfiguration,java.lang.Object> config, int defaultValue)
- Parameters:
config
-defaultValue
-- Returns:
- The int of the associated Map for this key or default value if not found
-
-