Package io.mangoo.enums
Enum Header
- java.lang.Object
-
- java.lang.Enum<Header>
-
- io.mangoo.enums.Header
-
- All Implemented Interfaces:
Serializable,Comparable<Header>
public enum Header extends Enum<Header>
Custom headers which are not part of undertow- Author:
- svenkubiak
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPT_LANGUAGECONTENT_DISPOSITIONCONTENT_SECURITY_POLICYCONTENT_TYPECOOKIEFEATURE_POLICYLOCATIONREFERER_POLICYSERVERX_CONTENT_TYPE_OPTIONSX_FORWARDED_FORX_FRAME_OPTIONSX_XSS_PPROTECTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.undertow.util.HttpStringtoHttpString()StringtoString()static HeadervalueOf(String name)Returns the enum constant of this type with the specified name.static Header[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCEPT_LANGUAGE
public static final Header ACCEPT_LANGUAGE
-
CONTENT_DISPOSITION
public static final Header CONTENT_DISPOSITION
-
CONTENT_SECURITY_POLICY
public static final Header CONTENT_SECURITY_POLICY
-
CONTENT_TYPE
public static final Header CONTENT_TYPE
-
COOKIE
public static final Header COOKIE
-
FEATURE_POLICY
public static final Header FEATURE_POLICY
-
LOCATION
public static final Header LOCATION
-
REFERER_POLICY
public static final Header REFERER_POLICY
-
SERVER
public static final Header SERVER
-
X_CONTENT_TYPE_OPTIONS
public static final Header X_CONTENT_TYPE_OPTIONS
-
X_FORWARDED_FOR
public static final Header X_FORWARDED_FOR
-
X_FRAME_OPTIONS
public static final Header X_FRAME_OPTIONS
-
X_XSS_PPROTECTION
public static final Header X_XSS_PPROTECTION
-
-
Method Detail
-
values
public static Header[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Header c : Header.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Header valueOf(String name)
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
-
toHttpString
public io.undertow.util.HttpString toHttpString()
-
-