Class WWWAuthenticationProtocolHandler
java.lang.Object
org.eclipse.jetty.client.AuthenticationProtocolHandler
org.eclipse.jetty.client.WWWAuthenticationProtocolHandler
- All Implemented Interfaces:
 ProtocolHandler
A protocol handler that handles the 401 response code
in association with the WWW-Authenticate header.
- See Also:
 
- 
Field Summary
FieldsFields inherited from class AuthenticationProtocolHandler
DEFAULT_MAX_CONTENT_LENGTH - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanInspects the givenrequestandresponseto detect whether this protocol handler should handle them.protected HttpHeaderprotected Stringprotected URIgetAuthenticationURI(Request request) protected HttpHeadergetName()Get a unique name among protocol handlers.Methods inherited from class AuthenticationProtocolHandler
getHeaderInfo, getHttpClient, getResponseListener 
- 
Field Details
- 
NAME
- See Also:
 
 
 - 
 - 
Constructor Details
- 
WWWAuthenticationProtocolHandler
 - 
WWWAuthenticationProtocolHandler
 
 - 
 - 
Method Details
- 
getName
Description copied from interface:ProtocolHandlerGet a unique name among protocol handlers.- Returns:
 - a unique name among protocol handlers
 
 - 
accept
Description copied from interface:ProtocolHandlerInspects the given
requestandresponseto 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:
 getAuthenticateHeaderin classAuthenticationProtocolHandler
 - 
getAuthorizationHeader
- Specified by:
 getAuthorizationHeaderin classAuthenticationProtocolHandler
 - 
getAuthenticationURI
- Specified by:
 getAuthenticationURIin classAuthenticationProtocolHandler
 - 
getAuthenticationAttribute
- Specified by:
 getAuthenticationAttributein classAuthenticationProtocolHandler
 
 -