|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<HeaderParseMethod> org.w3c.mwi.mobileok.basic.HeaderParseMethod
enum HeaderParseMethod
Enumerates the possible HTTP header fields values parsing rules and maps well-known HTTP header fields to parsing rules.
The values are not all used by the mobileOK Checker at this point.
Only PARSE_AND_NORMALIZE
and PARSE_BUT_DO_NOT_NORMALIZE
really trigger a specific behavior.
Enum Constant Summary | |
---|---|
PARSE_AND_NORMALIZE
|
|
PARSE_AS_AUTHENTICATION
|
|
PARSE_AS_AUTHORIZATION
|
|
PARSE_AS_DATE
|
|
PARSE_AS_ETAG
|
|
PARSE_AS_PRODUCT_LIST
|
|
PARSE_AS_URI
|
|
PARSE_BUT_DO_NOT_NORMALIZE
|
|
PARSE_DO_NOT
|
Field Summary | |
---|---|
private static java.util.Map<java.lang.String,HeaderParseMethod> |
HEADER_MAP
Mapping table between well-known HTTP Header fields and parsing methods. |
Method Summary | |
---|---|
(package private) static HeaderParseMethod |
forHeader(java.lang.String header)
Retrieves the parsing method to use to parse a given HTTP Header field. |
static HeaderParseMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static HeaderParseMethod[] |
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 HeaderParseMethod PARSE_DO_NOT
public static final HeaderParseMethod PARSE_BUT_DO_NOT_NORMALIZE
public static final HeaderParseMethod PARSE_AND_NORMALIZE
public static final HeaderParseMethod PARSE_AS_AUTHENTICATION
public static final HeaderParseMethod PARSE_AS_AUTHORIZATION
public static final HeaderParseMethod PARSE_AS_URI
public static final HeaderParseMethod PARSE_AS_ETAG
public static final HeaderParseMethod PARSE_AS_DATE
public static final HeaderParseMethod PARSE_AS_PRODUCT_LIST
Field Detail |
---|
private static final java.util.Map<java.lang.String,HeaderParseMethod> HEADER_MAP
Method Detail |
---|
public static HeaderParseMethod[] values()
for (HeaderParseMethod c : HeaderParseMethod.values()) System.out.println(c);
public static HeaderParseMethod 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 name
java.lang.NullPointerException
- if the argument is nullstatic HeaderParseMethod forHeader(java.lang.String header)
header
- HTTP header field name to parse
PARSE_DO_NOT
if the header is unknown.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |