Package com.jsgalactic.axiom.security
Enum Class ForwardedHeaders
- All Implemented Interfaces:
Serializable,Comparable<ForwardedHeaders>,Constable
The family of proxy headers
TrustedProxies believes. Exactly one family is read, never
both, so a request cannot mix a spoofed header of one family with a genuine header of the other
and make the result ambiguous. The other family is ignored entirely.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe standard RFC 7239Forwardedheader (for,proto,host).X-Forwarded-For,X-Forwarded-Proto,X-Forwarded-Host,X-Forwarded-Port. -
Method Summary
Modifier and TypeMethodDescriptionstatic ForwardedHeadersReturns the enum constant of this class with the specified name.static ForwardedHeaders[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
X_FORWARDED
X-Forwarded-For,X-Forwarded-Proto,X-Forwarded-Host,X-Forwarded-Port. -
FORWARDED
The standard RFC 7239Forwardedheader (for,proto,host).
-
-
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
-