|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<HttpHeader.Type> org.weborganic.bastille.cache.util.HttpHeader.Type
public static enum HttpHeader.Type
Used to help differentiate the different header types.
Enum Constant Summary | |
---|---|
DATE
A date Header. |
|
INT
A int Header. |
|
STRING
A String Header. |
Method Summary | |
---|---|
static HttpHeader.Type |
determineType(Class<? extends Serializable> clazz)
Determines the HttpHeader.Type of the Header. |
Class<? extends Serializable> |
getTypeClass()
|
static HttpHeader.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HttpHeader.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final HttpHeader.Type STRING
HttpServletResponse.setHeader(String, String)
public static final HttpHeader.Type DATE
HttpServletResponse.setDateHeader(String, long)
public static final HttpHeader.Type INT
HttpServletResponse.setIntHeader(String, int)
Method Detail |
---|
public static HttpHeader.Type[] values()
for (HttpHeader.Type c : HttpHeader.Type.values()) System.out.println(c);
public static HttpHeader.Type valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic Class<? extends Serializable> getTypeClass()
public static HttpHeader.Type determineType(Class<? extends Serializable> clazz)
HttpHeader.Type
of the Header.
clazz
- The class to test.
null
).
IllegalArgumentException
- if the specified class does not match any of the Types
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |