Package org.eclipse.jetty.client
Class AuthenticationProtocolHandler
- java.lang.Object
-
- org.eclipse.jetty.client.AuthenticationProtocolHandler
-
- All Implemented Interfaces:
ProtocolHandler
- Direct Known Subclasses:
ProxyAuthenticationProtocolHandler
,WWWAuthenticationProtocolHandler
public abstract class AuthenticationProtocolHandler extends java.lang.Object implements ProtocolHandler
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_CONTENT_LENGTH
static Logger
LOG
-
Constructor Summary
Constructors Modifier Constructor Description protected
AuthenticationProtocolHandler(HttpClient client, int maxContentLength)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract HttpHeader
getAuthenticateHeader()
protected abstract java.lang.String
getAuthenticationAttribute()
protected abstract java.net.URI
getAuthenticationURI(Request request)
protected abstract HttpHeader
getAuthorizationHeader()
protected java.util.List<Authentication.HeaderInfo>
getHeaderInfo(java.lang.String header)
protected HttpClient
getHttpClient()
Response.Listener
getResponseListener()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.client.ProtocolHandler
accept, getName
-
-
-
-
Field Detail
-
DEFAULT_MAX_CONTENT_LENGTH
public static final int DEFAULT_MAX_CONTENT_LENGTH
- See Also:
- Constant Field Values
-
LOG
public static final Logger LOG
-
-
Constructor Detail
-
AuthenticationProtocolHandler
protected AuthenticationProtocolHandler(HttpClient client, int maxContentLength)
-
-
Method Detail
-
getHttpClient
protected HttpClient getHttpClient()
-
getAuthenticateHeader
protected abstract HttpHeader getAuthenticateHeader()
-
getAuthorizationHeader
protected abstract HttpHeader getAuthorizationHeader()
-
getAuthenticationURI
protected abstract java.net.URI getAuthenticationURI(Request request)
-
getAuthenticationAttribute
protected abstract java.lang.String getAuthenticationAttribute()
-
getResponseListener
public Response.Listener getResponseListener()
- Specified by:
getResponseListener
in interfaceProtocolHandler
- Returns:
- a response listener that will handle the request and response on behalf of the application.
-
getHeaderInfo
protected java.util.List<Authentication.HeaderInfo> getHeaderInfo(java.lang.String header) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
-