Enum Class VitamHttpHeader
- All Implemented Interfaces:
Serializable
,Comparable<VitamHttpHeader>
,Constable
Enum use to represent possible HTTP header for Vitam application. Also define a regular expression to check if values
from HTTP headers are right
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe X_APPLICATION_ID header, used in requests to specify external Application Session IdThe CONTEXT_ID header, used in POST and PUT requests to ask for a particular workflow execution context stepBuStep or notThe X-Http-Method-Override header, used in requests to handle unsupported Http methods with bodyThe X_OFFER_ID header used in requests to get data from a specific offerThe X_OFFER_NO_CACHE header, used in requests to set cache policy when computing object digestThe X_OFFER_IDS header, used in HEAD requests to give list of offer idThe X-Qualifier header, used to get an objectThe X_STRATEGY_ID header, used in HEAD requests to ask for a particular strategyThe X_TENANT_ID header, used in requests to specify the used tenantThe X-Version header, used to get an objectAllow cross tenant access request check from Admin TenantThe X-Content-Length used to have object size (for storage)The X_Destination destination (offerId )The X-Content-Length used to have object size (for storage)The X_Content source (offerId )The X-CursorThe X-Cursor-IdThe DataCategory source (offerId )The X_DIGEST used to have digest value (for storage)The X_DIGEST_ALGORITHM used to have digest algrithm (for storage) -
Method Summary
Modifier and TypeMethodDescriptionstatic VitamHttpHeader
Get VitamHttpHeader from namegetName()
Get the header nameGet the regular expression to validate header valuesstatic VitamHttpHeader
Returns the enum constant of this class with the specified name.static VitamHttpHeader[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRATEGY_ID
The X_STRATEGY_ID header, used in HEAD requests to ask for a particular strategy -
OFFER
The X_OFFER_ID header used in requests to get data from a specific offer -
OFFERS_IDS
The X_OFFER_IDS header, used in HEAD requests to give list of offer id -
OFFER_NO_CACHE
The X_OFFER_NO_CACHE header, used in requests to set cache policy when computing object digest -
TENANT_ID
The X_TENANT_ID header, used in requests to specify the used tenant -
APPLICATION_ID
The X_APPLICATION_ID header, used in requests to specify external Application Session Id -
METHOD_OVERRIDE
The X-Http-Method-Override header, used in requests to handle unsupported Http methods with body -
QUALIFIER
The X-Qualifier header, used to get an object -
VERSION
The X-Version header, used to get an object -
X_CHUNK_LENGTH
The X-Content-Length used to have object size (for storage) -
X_CONTENT_LENGTH
The X-Content-Length used to have object size (for storage) -
X_DIGEST
The X_DIGEST used to have digest value (for storage) -
X_DIGEST_ALGORITHM
The X_DIGEST_ALGORITHM used to have digest algrithm (for storage) -
CONTEXT_ID
The CONTEXT_ID header, used in POST and PUT requests to ask for a particular workflow execution context stepBuStep or not -
X_CONTENT_SOURCE
The X_Content source (offerId ) -
X_DATA_CATEGORY
The DataCategory source (offerId ) -
X_CONTENT_DESTINATION
The X_Destination destination (offerId ) -
X_CURSOR
The X-Cursor -
X_CURSOR_ID
The X-Cursor-Id -
X_ADMIN_CROSS_TENANT_ACCESS_REQUEST_ALLOWED
Allow cross tenant access request check from Admin Tenant
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
Get the header name- Returns:
- the header name
-
getRegExp
Get the regular expression to validate header values- Returns:
- the regular expression
-
get
Get VitamHttpHeader from name- Parameters:
headerName
- the wanted header name- Returns:
- the header if exists, null otherwise
-