public class HttpBasicAuthLogicHandler extends AbstractAuthLogicHandler
proxyIoSession, request, step
Constructor and Description |
---|
HttpBasicAuthLogicHandler(ProxyIoSession proxyIoSession) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
createAuthorization(java.lang.String username,
java.lang.String password)
Computes the authorization header value.
|
void |
doHandshake(IoFilter.NextFilter nextFilter)
Method called at each step of the handshaking process.
|
void |
handleResponse(HttpProxyResponse response)
Handles a HTTP response from the proxy server.
|
addKeepAliveHeaders, writeRequest
public HttpBasicAuthLogicHandler(ProxyIoSession proxyIoSession) throws ProxyAuthException
ProxyAuthException
public void doHandshake(IoFilter.NextFilter nextFilter) throws ProxyAuthException
doHandshake
in class AbstractAuthLogicHandler
nextFilter
- the next filterProxyAuthException
public static java.lang.String createAuthorization(java.lang.String username, java.lang.String password)
username
- the user namepassword
- the user passwordpublic void handleResponse(HttpProxyResponse response) throws ProxyAuthException
handleResponse
in class AbstractAuthLogicHandler
response
- The HTTP response.ProxyAuthException
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.