Enum AllowForwardHeaders
- All Implemented Interfaces:
Serializable, Comparable<AllowForwardHeaders>
What kind of forward header parsing are we allowing.
- Author:
- Paulo Lopes
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOnly process the standardForwardheader as defined by invalid input: '<'a href="https://tools.ietf.org/html/rfc7239#section-4>RFC 7239, section 4: Forwarded.No parsing shall be performed.Only process the non standard but widely usedX-Forward-*headers. -
Method Summary
Modifier and TypeMethodDescriptionstatic AllowForwardHeadersReturns the enum constant of this type with the specified name.static AllowForwardHeaders[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No parsing shall be performed. -
FORWARD
Only process the standardForwardheader as defined by invalid input: '<'a href="https://tools.ietf.org/html/rfc7239#section-4>RFC 7239, section 4: Forwarded. For more info see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded -
X_FORWARD
Only process the non standard but widely usedX-Forward-*headers. These headers are not official standards but widely used. Users are advised to avoid them for new applications. -
ALL
Will process bothFORWARDandX_FORWARD. Be aware that mixing the 2 headers can open security holes as specially crafted requests that are not validated as proxy level can allow bypassing the proxy desired forward value. For example, a proxy will add theX-Forward-*headers to a request but not filter out if the original request includes theForwardheader.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-