Package org.eclipse.jetty.http
Enum HttpGenerator.Result
- java.lang.Object
-
- java.lang.Enum<HttpGenerator.Result>
-
- org.eclipse.jetty.http.HttpGenerator.Result
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpGenerator.Result>
- Enclosing class:
- HttpGenerator
public static enum HttpGenerator.Result extends java.lang.Enum<HttpGenerator.Result>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTINUE
DONE
FLUSH
HEADER_OVERFLOW
NEED_CHUNK
NEED_CHUNK_TRAILER
NEED_HEADER
NEED_INFO
SHUTDOWN_OUT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpGenerator.Result
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpGenerator.Result[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEED_CHUNK
public static final HttpGenerator.Result NEED_CHUNK
-
NEED_INFO
public static final HttpGenerator.Result NEED_INFO
-
NEED_HEADER
public static final HttpGenerator.Result NEED_HEADER
-
HEADER_OVERFLOW
public static final HttpGenerator.Result HEADER_OVERFLOW
-
NEED_CHUNK_TRAILER
public static final HttpGenerator.Result NEED_CHUNK_TRAILER
-
FLUSH
public static final HttpGenerator.Result FLUSH
-
CONTINUE
public static final HttpGenerator.Result CONTINUE
-
SHUTDOWN_OUT
public static final HttpGenerator.Result SHUTDOWN_OUT
-
DONE
public static final HttpGenerator.Result DONE
-
-
Method Detail
-
values
public static HttpGenerator.Result[] 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 (HttpGenerator.Result c : HttpGenerator.Result.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpGenerator.Result 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
-
-