Package org.eclipse.jetty.http
Enum HttpTokens.Type
- java.lang.Object
-
- java.lang.Enum<HttpTokens.Type>
-
- org.eclipse.jetty.http.HttpTokens.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpTokens.Type>
- Enclosing class:
- HttpTokens
public static enum HttpTokens.Type extends java.lang.Enum<HttpTokens.Type>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpTokens.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpTokens.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CNTL
public static final HttpTokens.Type CNTL
-
HTAB
public static final HttpTokens.Type HTAB
-
LF
public static final HttpTokens.Type LF
-
CR
public static final HttpTokens.Type CR
-
SPACE
public static final HttpTokens.Type SPACE
-
COLON
public static final HttpTokens.Type COLON
-
DIGIT
public static final HttpTokens.Type DIGIT
-
ALPHA
public static final HttpTokens.Type ALPHA
-
TCHAR
public static final HttpTokens.Type TCHAR
-
VCHAR
public static final HttpTokens.Type VCHAR
-
OTEXT
public static final HttpTokens.Type OTEXT
-
-
Method Detail
-
values
public static HttpTokens.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpTokens.Type c : HttpTokens.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpTokens.Type 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
-
-