public class HttpBasicAuthLogicHandler extends AbstractAuthLogicHandler
proxyIoSession, request, step| Constructor and Description |
|---|
HttpBasicAuthLogicHandler(ProxyIoSession proxyIoSession)
Build an HttpBasicAuthLogicHandler
|
| Modifier and Type | Method and 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, writeRequestpublic 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 AbstractAuthLogicHandlernextFilter - 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 AbstractAuthLogicHandlerresponse - The HTTP response.ProxyAuthException - If we get an error during the proxy authenticationCopyright © 2004–2024 Apache MINA Project. All rights reserved.