Package org.eclipse.jetty.client
Class ProxyAuthenticationProtocolHandler
java.lang.Object
org.eclipse.jetty.client.AuthenticationProtocolHandler
org.eclipse.jetty.client.ProxyAuthenticationProtocolHandler
- All Implemented Interfaces:
ProtocolHandler
A protocol handler that handles the 401 response code
in association with the Proxy-Authenticate
header.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.jetty.client.AuthenticationProtocolHandler
DEFAULT_MAX_CONTENT_LENGTH, LOG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Inspects the givenrequest
andresponse
to detect whether this protocol handler should handle them.protected HttpHeader
protected String
protected URI
getAuthenticationURI
(Request request) protected HttpHeader
getName()
Methods inherited from class org.eclipse.jetty.client.AuthenticationProtocolHandler
getHeaderInfo, getHttpClient, getResponseListener
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
ProxyAuthenticationProtocolHandler
-
ProxyAuthenticationProtocolHandler
-
-
Method Details
-
getName
- 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.
- Parameters:
request
- the request to acceptresponse
- the response to accept- Returns:
- true if this protocol handler can handle the given request and response
-
getAuthenticateHeader
- Specified by:
getAuthenticateHeader
in classAuthenticationProtocolHandler
-
getAuthorizationHeader
- Specified by:
getAuthorizationHeader
in classAuthenticationProtocolHandler
-
getAuthenticationURI
- Specified by:
getAuthenticationURI
in classAuthenticationProtocolHandler
-
getAuthenticationAttribute
- Specified by:
getAuthenticationAttribute
in classAuthenticationProtocolHandler
-