public class HttpBasicAuthLogicHandler extends AbstractAuthLogicHandler
proxyIoSession, request, step
Constructor | Description |
---|---|
HttpBasicAuthLogicHandler(ProxyIoSession proxyIoSession) |
Build an HttpBasicAuthLogicHandler
|
Modifier and Type | Method | Description |
---|---|---|
static String |
createAuthorization(String username,
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
proxyIoSession
- The proxy sessionProxyAuthException
- If we had a probelm during the proxy authenticationpublic void doHandshake(IoFilter.NextFilter nextFilter) throws ProxyAuthException
doHandshake
in class AbstractAuthLogicHandler
nextFilter
- the next filterProxyAuthException
- If we get an error during the proxy authenticationpublic static String createAuthorization(String username, String password)
username
- the user namepassword
- the user passwordpublic void handleResponse(HttpProxyResponse response) throws ProxyAuthException
handleResponse
in class AbstractAuthLogicHandler
response
- The HTTP response.ProxyAuthException
- If we get an error during the proxy authenticationCopyright © 2004–2018 Apache MINA Project. All rights reserved.