ProtocolHandlerpublic class WWWAuthenticationProtocolHandler extends AuthenticationProtocolHandler
A protocol handler that handles the 401 response code
in association with the WWW-Authenticate header.
ProxyAuthenticationProtocolHandler| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAME |
DEFAULT_MAX_CONTENT_LENGTH, LOG| Constructor | Description |
|---|---|
WWWAuthenticationProtocolHandler(HttpClient client) |
|
WWWAuthenticationProtocolHandler(HttpClient client,
int maxContentLength) |
| 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. |
protected org.eclipse.jetty.http.HttpHeader |
getAuthenticateHeader() |
|
protected java.lang.String |
getAuthenticationAttribute() |
|
protected java.net.URI |
getAuthenticationURI(Request request) |
|
protected org.eclipse.jetty.http.HttpHeader |
getAuthorizationHeader() |
|
java.lang.String |
getName() |
getHeaderInfo, getHttpClient, getResponseListenerpublic static final java.lang.String NAME
public WWWAuthenticationProtocolHandler(HttpClient client)
public WWWAuthenticationProtocolHandler(HttpClient client, int maxContentLength)
public java.lang.String getName()
public 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.
request - the request to acceptresponse - the response to acceptprotected org.eclipse.jetty.http.HttpHeader getAuthenticateHeader()
getAuthenticateHeader in class AuthenticationProtocolHandlerprotected org.eclipse.jetty.http.HttpHeader getAuthorizationHeader()
getAuthorizationHeader in class AuthenticationProtocolHandlerprotected java.net.URI getAuthenticationURI(Request request)
getAuthenticationURI in class AuthenticationProtocolHandlerprotected java.lang.String getAuthenticationAttribute()
getAuthenticationAttribute in class AuthenticationProtocolHandlerCopyright © 1995–2018 Webtide. All rights reserved.