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 intDEFAULT_MAX_CONTENT_LENGTHstatic LoggerLOG
-
Constructor Summary
Constructors Modifier Constructor Description protectedAuthenticationProtocolHandler(HttpClient client, int maxContentLength)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract HttpHeadergetAuthenticateHeader()protected abstract java.lang.StringgetAuthenticationAttribute()protected abstract java.net.URIgetAuthenticationURI(Request request)protected abstract HttpHeadergetAuthorizationHeader()protected java.util.List<Authentication.HeaderInfo>getHeaderInfo(java.lang.String header)protected HttpClientgetHttpClient()Response.ListenergetResponseListener()-
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:
getResponseListenerin 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
-
-