public enum ProtocolState extends Enum<ProtocolState>
Enum Constant and Description |
---|
CLOSED
The connection is closed
|
CLOSING
The connection is closing
|
GET_REQUEST_COMPLETE
GET request has been responded to
|
REQUEST_BODY
The connection is reading the request body
|
REQUEST_DONE
Request is completely received
|
REQUEST_HEAD
The connection is reading the request headers
|
REQUEST_READY
Connection is at the initial stage ready to receive a request
|
RESPONSE_BODY
The connection is reading the response body
|
RESPONSE_DONE
The response is completed
|
RESPONSE_HEAD
The connection is reading the response headers
|
Modifier and Type | Method and Description |
---|---|
static ProtocolState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolState REQUEST_READY
public static final ProtocolState REQUEST_HEAD
public static final ProtocolState REQUEST_BODY
public static final ProtocolState REQUEST_DONE
public static final ProtocolState RESPONSE_HEAD
public static final ProtocolState RESPONSE_BODY
public static final ProtocolState RESPONSE_DONE
public static final ProtocolState CLOSING
public static final ProtocolState CLOSED
public static final ProtocolState GET_REQUEST_COMPLETE
public static ProtocolState[] values()
for (ProtocolState c : ProtocolState.values()) System.out.println(c);
public static ProtocolState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.