Package fr.gouv.vitam.ihmdemo.common.api
Enum Class IhmWebAppHeader
- All Implemented Interfaces:
Serializable
,Comparable<IhmWebAppHeader>
,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 COOKIE header, used to get an objectThe X_LIMIT header, used to get an objectThe X_OFFSET header, used to get an objectThe X_REQUEST_ID header, used to get an objectThe X_TOTAL header, used to get an object -
Method Summary
Modifier and TypeMethodDescriptionstatic IhmWebAppHeader
Get VitamHttpHeader from namegetName()
Get the header nameGet the regular expression to validate header valuesstatic IhmWebAppHeader
Returns the enum constant of this class with the specified name.static IhmWebAppHeader[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LIMIT
The X_LIMIT header, used to get an object -
OFFSET
The X_OFFSET header, used to get an object -
TOTAL
The X_TOTAL header, used to get an object -
REQUEST_ID
The X_REQUEST_ID header, used to get an object -
COOKIE
The COOKIE header, used to get an object
-
-
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
-