Package org.eclipse.jetty.client
Class ContinueProtocolHandler
java.lang.Object
org.eclipse.jetty.client.ContinueProtocolHandler
- All Implemented Interfaces:
ProtocolHandler
A protocol handler that handles the 100 response code.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Inspects the givenrequest
andresponse
to detect whether this protocol handler should handle them.getName()
protected void
onContinue
(Request request)
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ContinueProtocolHandler
public ContinueProtocolHandler()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceProtocolHandler
- Returns:
- a unique name among protocol handlers
-
accept
Description copied from interface:ProtocolHandler
Inspects the given
request
andresponse
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.
- Specified by:
accept
in interfaceProtocolHandler
- Parameters:
request
- the request to acceptresponse
- the response to accept- Returns:
- true if this protocol handler can handle the given request and response
-
getResponseListener
- Specified by:
getResponseListener
in interfaceProtocolHandler
- Returns:
- a response listener that will handle the request and response on behalf of the application.
-
onContinue
-