A protocol handler that handles HTTP 101 responses.
| 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 |
| protected boolean | |
| private void | forwardFailureComplete(HttpRequest request, Throwable requestFailure, Response response, Throwable responseFailure)
|
| public String | getName()
Implements org. Get a unique name among protocol handlers. |
| public Response. |
| protocols | back to summary |
|---|---|
| private final List<String> protocols | |
| UpgradeProtocolHandler | back to summary |
|---|---|
| public UpgradeProtocolHandler() | |
| 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. | |
| acceptHeaders | back to summary |
|---|---|
| protected boolean acceptHeaders(Request request, Response response) | |
| forwardFailureComplete | back to summary |
|---|---|
| private void forwardFailureComplete(HttpRequest request, Throwable requestFailure, Response response, Throwable responseFailure) | |
| 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.
| |