A protocol handler that handles the 100 response code.
| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | accept(Request
the request to accept request, Response the response to accept response)Implements org. Inspects the given |
| public String | getName()
Implements org. |
| public Response. | |
| protected void |
| ATTRIBUTE | back to summary |
|---|---|
| private static final String ATTRIBUTE | |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| ContinueProtocolHandler | back to summary |
|---|---|
| public ContinueProtocolHandler() | |
| accept | back to summary |
|---|---|
| public boolean accept(Request request, Response response) Implements org. Doc from org. Inspects the given For example, a redirect protocol handler can inspect the response code and return true if it is a redirect response code. This method is being called just after the response line has been parsed, and before the response headers are available. | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Get a unique name among protocol handlers. | |
| getResponseListener | back to summary |
|---|---|
| public Response. Implements org.
| |
| onContinue | back to summary |
|---|---|
| protected void onContinue(Request request) | |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | onComplete(Result
the result of the request / response exchange result)Overrides default org. Implements abstract org. |
| public void | onFailure(Response
the response containing data up to the point the failure happened response, Throwable the failure happened failure)Overrides default org. |
| public void | onSuccess(Response
the response containing the response line data and the headers response)Overrides default org. |
| ContinueListener | back to summary |
|---|---|
| protected ContinueListener() | |
| onComplete | back to summary |
|---|---|
| public void onComplete(Result result) Overrides default org. Implements abstract org. Doc from org. Callback method invoked when the request and the response have been processed, either successfully or not.
The
Requests may complete after response, for example in case of big uploads that are
discarded or read asynchronously by the server.
This method is always invoked after | |
| onFailure | back to summary |
|---|---|
| public void onFailure(Response response, Throwable failure) Overrides default org. Doc from org. Callback method invoked when the response has failed in the process of being received | |
| onSuccess | back to summary |
|---|---|
| public void onSuccess(Response response) Overrides default org. Doc from org. Callback method invoked when the whole response has been successfully received. | |