public static enum Header.Type extends java.lang.Enum<Header.Type>
| Enum Constant and Description |
|---|
DATE
A date Header.
|
INT
A int Header.
|
STRING
A String Header.
|
| Modifier and Type | Method and Description |
|---|---|
static Header.Type |
determineType(java.lang.Class<? extends java.io.Serializable> typeClass)
Determines the
Header.Type of the Header. |
java.lang.Class<? extends java.io.Serializable> |
getTypeClass() |
static Header.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Header.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Header.Type STRING
HttpServletResponse.setHeader(String, String)public static final Header.Type DATE
HttpServletResponse.setDateHeader(String, long)public static final Header.Type INT
HttpServletResponse.setIntHeader(String, int)public static Header.Type[] values()
for (Header.Type c : Header.Type.values()) System.out.println(c);
public static Header.Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Class<? extends java.io.Serializable> getTypeClass()
public static Header.Type determineType(java.lang.Class<? extends java.io.Serializable> typeClass)
Header.Type of the Header. Throws
IllegalArgumentException if the specified class does not match any of
the Types