Package org.wso2.carbon.mediator.cache
Class CachingConstants
- java.lang.Object
-
- org.wso2.carbon.mediator.cache.CachingConstants
-
public class CachingConstants extends Object
This has the common constants used in the classes related to the cache mediator implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALL
To represent all-values in certain places in the cache mediatorstatic String
ANY_RESPONSE_CODE
The regex for the 2xx response code.static String
CACHE_KEY
The the header that would be used to return the hashed value to invalidate this value.static String
CACHE_LOCAL_NAME
Local name of the cache mediator which will be used by the module.static QName
CACHE_Q
QName of the cache mediator which will be used by the module.static String
CACHED_OBJECT
String key to store the cached response in the message context.static String
COLLECTOR_STRING
static String
DATE_PATTERN
static boolean
DEFAULT_ADD_AGE_HEADER
The default value for addAgeHeader.static boolean
DEFAULT_ENABLE_CACHE_CONTROL
The default value for enableCacheControl.static DigestGenerator
DEFAULT_HASH_GENERATOR
Default DigestGenerator for the caching impl.static int
DEFAULT_SIZE
The default size for the maxSize and maxMessageSizestatic long
DEFAULT_TIMEOUT
This holds the default timeout of the mediator cache in seconds .static String
ENABLE_CACHE_CONTROL_STRING
static String
EXCLUDED_HEADERS_PROPERTY
static String
HASH_GENERATOR_STRING
static String
HEADERS_TO_EXCLUDE_STRING
static String
HEADERS_TO_INCLUDE_STRING
static String
HTTP_PROTOCOL_TYPE
The HTTP protocol.static String
ID_STRING
static String
IF_NONE_MATCH
static String
IMPLEMENTATION_STRING
static String
INCLUDE_AGE_HEADER_STRING
static String
INCLUDED_HEADERS_PROPERTY
static String
MAX_AGE_STRING
static String
MAX_MESSAGE_SIZE_STRING
static String
MAX_SIZE_STRING
static String
METHODS_STRING
static String
NO_CACHE_STRING
static String
NO_STORE_STRING
static String
ON_CACHE_HIT_STRING
static String[]
PERMANENTLY_EXCLUDED_HEADERS
Headers which need to be permanently excluded in hashing due to its dynamic nature.static String
PERMANENTLY_EXCLUDED_HEADERS_STRING
static String
PROTOCOL_STRING
static String
REQUEST_HASH
String key to store the the request hash in the message context.static String
RESPONSE_CODES_STRING
static String
SCOPE_STRING
static String
SEQUENCE_STRING
static String
TIMEOUT_STRING
Following names represent the local names used in QNames in MediatorFactory, Serializer and the UI CacheMediator.static String
TYPE_STRING
-
Constructor Summary
Constructors Constructor Description CachingConstants()
-
-
-
Field Detail
-
DEFAULT_HASH_GENERATOR
public static final DigestGenerator DEFAULT_HASH_GENERATOR
Default DigestGenerator for the caching impl.
-
CACHE_Q
public static final QName CACHE_Q
QName of the cache mediator which will be used by the module.
-
CACHE_LOCAL_NAME
public static final String CACHE_LOCAL_NAME
Local name of the cache mediator which will be used by the module.- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUT
This holds the default timeout of the mediator cache in seconds .- See Also:
- Constant Field Values
-
ALL
public static final String ALL
To represent all-values in certain places in the cache mediator- See Also:
- Constant Field Values
-
HTTP_PROTOCOL_TYPE
public static final String HTTP_PROTOCOL_TYPE
The HTTP protocol.- See Also:
- Constant Field Values
-
ANY_RESPONSE_CODE
public static final String ANY_RESPONSE_CODE
The regex for the 2xx response code.- See Also:
- Constant Field Values
-
REQUEST_HASH
public static final String REQUEST_HASH
String key to store the the request hash in the message context.- See Also:
- Constant Field Values
-
CACHED_OBJECT
public static final String CACHED_OBJECT
String key to store the cached response in the message context.- See Also:
- Constant Field Values
-
CACHE_KEY
public static final String CACHE_KEY
The the header that would be used to return the hashed value to invalidate this value.- See Also:
- Constant Field Values
-
DEFAULT_SIZE
public static final int DEFAULT_SIZE
The default size for the maxSize and maxMessageSize- See Also:
- Constant Field Values
-
DEFAULT_ENABLE_CACHE_CONTROL
public static final boolean DEFAULT_ENABLE_CACHE_CONTROL
The default value for enableCacheControl.- See Also:
- Constant Field Values
-
DEFAULT_ADD_AGE_HEADER
public static final boolean DEFAULT_ADD_AGE_HEADER
The default value for addAgeHeader.- See Also:
- Constant Field Values
-
PERMANENTLY_EXCLUDED_HEADERS
public static final String[] PERMANENTLY_EXCLUDED_HEADERS
Headers which need to be permanently excluded in hashing due to its dynamic nature.
-
TIMEOUT_STRING
public static final String TIMEOUT_STRING
Following names represent the local names used in QNames in MediatorFactory, Serializer and the UI CacheMediator.- See Also:
- Constant Field Values
-
COLLECTOR_STRING
public static final String COLLECTOR_STRING
- See Also:
- Constant Field Values
-
MAX_MESSAGE_SIZE_STRING
public static final String MAX_MESSAGE_SIZE_STRING
- See Also:
- Constant Field Values
-
ON_CACHE_HIT_STRING
public static final String ON_CACHE_HIT_STRING
- See Also:
- Constant Field Values
-
SEQUENCE_STRING
public static final String SEQUENCE_STRING
- See Also:
- Constant Field Values
-
PROTOCOL_STRING
public static final String PROTOCOL_STRING
- See Also:
- Constant Field Values
-
METHODS_STRING
public static final String METHODS_STRING
- See Also:
- Constant Field Values
-
HEADERS_TO_EXCLUDE_STRING
public static final String HEADERS_TO_EXCLUDE_STRING
- See Also:
- Constant Field Values
-
HEADERS_TO_INCLUDE_STRING
public static final String HEADERS_TO_INCLUDE_STRING
- See Also:
- Constant Field Values
-
TYPE_STRING
public static final String TYPE_STRING
- See Also:
- Constant Field Values
-
RESPONSE_CODES_STRING
public static final String RESPONSE_CODES_STRING
- See Also:
- Constant Field Values
-
HASH_GENERATOR_STRING
public static final String HASH_GENERATOR_STRING
- See Also:
- Constant Field Values
-
IMPLEMENTATION_STRING
public static final String IMPLEMENTATION_STRING
- See Also:
- Constant Field Values
-
MAX_SIZE_STRING
public static final String MAX_SIZE_STRING
- See Also:
- Constant Field Values
-
ENABLE_CACHE_CONTROL_STRING
public static final String ENABLE_CACHE_CONTROL_STRING
- See Also:
- Constant Field Values
-
INCLUDE_AGE_HEADER_STRING
public static final String INCLUDE_AGE_HEADER_STRING
- See Also:
- Constant Field Values
-
IF_NONE_MATCH
public static final String IF_NONE_MATCH
- See Also:
- Constant Field Values
-
DATE_PATTERN
public static final String DATE_PATTERN
- See Also:
- Constant Field Values
-
NO_CACHE_STRING
public static final String NO_CACHE_STRING
- See Also:
- Constant Field Values
-
MAX_AGE_STRING
public static final String MAX_AGE_STRING
- See Also:
- Constant Field Values
-
NO_STORE_STRING
public static final String NO_STORE_STRING
- See Also:
- Constant Field Values
-
ID_STRING
public static final String ID_STRING
- See Also:
- Constant Field Values
-
SCOPE_STRING
public static final String SCOPE_STRING
- See Also:
- Constant Field Values
-
PERMANENTLY_EXCLUDED_HEADERS_STRING
public static final String PERMANENTLY_EXCLUDED_HEADERS_STRING
- See Also:
- Constant Field Values
-
EXCLUDED_HEADERS_PROPERTY
public static final String EXCLUDED_HEADERS_PROPERTY
- See Also:
- Constant Field Values
-
INCLUDED_HEADERS_PROPERTY
public static final String INCLUDED_HEADERS_PROPERTY
- See Also:
- Constant Field Values
-
-