ProtocolHandlerpublic class ContinueProtocolHandler extends java.lang.Object implements ProtocolHandler
A protocol handler that handles the 100 response code.
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
ContinueProtocolHandler.ContinueListener |
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAME |
| Constructor | Description |
|---|---|
ContinueProtocolHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
accept(Request request,
Response response) |
Inspects the given
request and response
to detect whether this protocol handler should handle them. |
java.lang.String |
getName() |
|
Response.Listener |
getResponseListener() |
|
protected void |
onContinue(Request request) |
public static final java.lang.String NAME
public java.lang.String getName()
getName in interface ProtocolHandlerpublic boolean accept(Request request, Response response)
ProtocolHandlerInspects the given request and response
to detect whether this protocol handler should handle them.
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.
accept in interface ProtocolHandlerrequest - the request to acceptresponse - the response to acceptpublic Response.Listener getResponseListener()
getResponseListener in interface ProtocolHandlerprotected void onContinue(Request request)
Copyright © 1995–2017 Webtide. All rights reserved.