public enum ClientPhase extends Enum<ClientPhase>
| Enum Constant and Description |
|---|
DISPATCH_RESPONSE
The
HttpContext.response() has been created and will be dispatched. |
FAILURE
It failed.
|
FOLLOW_REDIRECT
The
HttpClientResponse has been received, but the client must follow a redirect |
PREPARE_REQUEST
The
HttpClientRequest has not yet been created, the HttpContext.request() can be fully modified. |
RECEIVE_RESPONSE
The
HttpClientResponse has been received and the HttpContext.response() will be created. |
SEND_REQUEST
The
HttpClientRequest has been created but not yet sent, the HTTP method, URI or request parameters
cannot be modified anymore. |
| Modifier and Type | Method and Description |
|---|---|
static ClientPhase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientPhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientPhase PREPARE_REQUEST
HttpClientRequest has not yet been created, the HttpContext.request() can be fully modified.public static final ClientPhase SEND_REQUEST
HttpClientRequest has been created but not yet sent, the HTTP method, URI or request parameters
cannot be modified anymore.public static final ClientPhase FOLLOW_REDIRECT
HttpClientResponse has been received, but the client must follow a redirectpublic static final ClientPhase RECEIVE_RESPONSE
HttpClientResponse has been received and the HttpContext.response() will be created.public static final ClientPhase DISPATCH_RESPONSE
HttpContext.response() has been created and will be dispatched.public static final ClientPhase FAILURE
public static ClientPhase[] values()
for (ClientPhase c : ClientPhase.values()) System.out.println(c);
public static ClientPhase 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 © 2020. All rights reserved.