|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Header.Type>
net.sf.ehcache.constructs.web.Header.Type
public static enum Header.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 Header.Type |
determineType(Class<? extends Serializable> typeClass)
Determines the Header.Type of the Header. |
Class<? extends Serializable> |
getTypeClass()
|
static Header.Type |
valueOf(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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, 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 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)
| Method Detail |
|---|
public static Header.Type[] values()
for (Header.Type c : Header.Type.values()) System.out.println(c);
public static Header.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 Header.Type determineType(Class<? extends Serializable> typeClass)
Header.Type of the Header. Throws 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 | |||||||||