Package org.eclipse.jetty.server
Enum HttpOutput.ApiState
- java.lang.Object
-
- java.lang.Enum<HttpOutput.ApiState>
-
- org.eclipse.jetty.server.HttpOutput.ApiState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpOutput.ApiState>
- Enclosing class:
- HttpOutput
static enum HttpOutput.ApiState extends java.lang.Enum<HttpOutput.ApiState>
The API State which combines with the output State:OPEN/BLOCKING---last----------------------------+ CLOSED/BLOCKING / | ^ \ ^ ^ / w | \ / | / | owc +--owcL------------------->--owcL-----\---------------------+ | | v | / / V | swl OPEN/BLOCKED----last---->CLOSE/BLOCKED----owc----->CLOSING/BLOCKED--owcL------+ | \ \ V +-->OPEN/READY------last---------------------------+ / ^ | \ / / w \ | / | +--owcL------------------->--owcL----\---------------------------+ | / v / / V | | irt OPEN/PENDING----last---->CLOSE/PENDING----owc---->CLOSING/PENDING--owcL----+ | | \ / | | ^ | | | owc \/ owc irf / irf | | | /\ | | / | | | | / \ V | / | V V | irf OPEN/ASYNC------last----------|----------------+ | CLOSED/ASYNC | \ | | ^ ^ \ \ | | | | \ \ | | | | \ v v v | | +--OPEN/UNREADY----last---->CLOSE/UNREADY----owc----->CLOSING/UNREADY--owcL---+ | \ \ | +--owcL------------------->--owcL--------------------------------+ swl : setWriteListener w : write owc : onWriteComplete last == false owcL : onWriteComplete last == true irf : isReady() == false irt : isReady() == true last : close() or complete(Callback) or write of known last content
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ApiState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpOutput.ApiState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpOutput.ApiState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOCKING
public static final HttpOutput.ApiState BLOCKING
-
BLOCKED
public static final HttpOutput.ApiState BLOCKED
-
ASYNC
public static final HttpOutput.ApiState ASYNC
-
READY
public static final HttpOutput.ApiState READY
-
PENDING
public static final HttpOutput.ApiState PENDING
-
UNREADY
public static final HttpOutput.ApiState UNREADY
-
-
Method Detail
-
values
public static HttpOutput.ApiState[] 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 (HttpOutput.ApiState c : HttpOutput.ApiState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpOutput.ApiState 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
-
-