Enum ContentType
- java.lang.Object
-
- java.lang.Enum<ContentType>
-
- org.rootservices.otter.controller.header.ContentType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ContentType>,java.lang.constant.Constable
public enum ContentType extends java.lang.Enum<ContentType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORM_URL_ENCODEDJSONJSON_UTF_8JWTJWT_UTF_8UTF_8
-
Method Summary
Modifier and Type Method Description java.lang.StringgetValue()static ContentTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ContentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JWT
public static final ContentType JWT
-
JSON
public static final ContentType JSON
-
UTF_8
public static final ContentType UTF_8
-
JWT_UTF_8
public static final ContentType JWT_UTF_8
-
JSON_UTF_8
public static final ContentType JSON_UTF_8
-
FORM_URL_ENCODED
public static final ContentType FORM_URL_ENCODED
-
-
Method Detail
-
values
public static ContentType[] 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
public static ContentType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public java.lang.String getValue()
-
-