Package org.eclipse.jetty.http
Enum HttpTokens.EndOfContent
- java.lang.Object
-
- java.lang.Enum<HttpTokens.EndOfContent>
-
- org.eclipse.jetty.http.HttpTokens.EndOfContent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpTokens.EndOfContent>
- Enclosing class:
- HttpTokens
public static enum HttpTokens.EndOfContent extends java.lang.Enum<HttpTokens.EndOfContent>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHUNKED_CONTENT
CONTENT_LENGTH
EOF_CONTENT
NO_CONTENT
UNKNOWN_CONTENT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpTokens.EndOfContent
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpTokens.EndOfContent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_CONTENT
public static final HttpTokens.EndOfContent UNKNOWN_CONTENT
-
NO_CONTENT
public static final HttpTokens.EndOfContent NO_CONTENT
-
EOF_CONTENT
public static final HttpTokens.EndOfContent EOF_CONTENT
-
CONTENT_LENGTH
public static final HttpTokens.EndOfContent CONTENT_LENGTH
-
CHUNKED_CONTENT
public static final HttpTokens.EndOfContent CHUNKED_CONTENT
-
-
Method Detail
-
values
public static HttpTokens.EndOfContent[] 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.EndOfContent c : HttpTokens.EndOfContent.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.EndOfContent 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
-
-