Class HttpBasicAuthLogicHandler
java.lang.Object
org.apache.mina.proxy.handlers.http.AbstractAuthLogicHandler
org.apache.mina.proxy.handlers.http.basic.HttpBasicAuthLogicHandler
HttpBasicAuthLogicHandler.java - HTTP Basic authentication mechanism logic handler.
- Since:
- MINA 2.0.0-M3
-
Field Summary
FieldsFields inherited from class AbstractAuthLogicHandler
proxyIoSession, request, step -
Constructor Summary
ConstructorsConstructorDescriptionHttpBasicAuthLogicHandler(ProxyIoSession proxyIoSession) Build an HttpBasicAuthLogicHandler -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateAuthorization(String username, String password) Computes the authorization header value.voiddoHandshake(IoFilter.NextFilter nextFilter) Method called at each step of the handshaking process.voidhandleResponse(HttpProxyResponse response) Handles a HTTP response from the proxy server.Methods inherited from class AbstractAuthLogicHandler
addKeepAliveHeaders, writeRequest
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
HttpBasicAuthLogicHandler
Build an HttpBasicAuthLogicHandler- Parameters:
proxyIoSession- The proxy session- Throws:
ProxyAuthException- If we had a probelm during the proxy authentication
-
-
Method Details
-
doHandshake
Method called at each step of the handshaking process.- Specified by:
doHandshakein classAbstractAuthLogicHandler- Parameters:
nextFilter- the next filter- Throws:
ProxyAuthException- If we get an error during the proxy authentication
-
createAuthorization
-
handleResponse
Handles a HTTP response from the proxy server.- Specified by:
handleResponsein classAbstractAuthLogicHandler- Parameters:
response- The HTTP response.- Throws:
ProxyAuthException- If we get an error during the proxy authentication
-