|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.proxy.handlers.http.AbstractAuthLogicHandler
public abstract class AbstractAuthLogicHandler
AbstractAuthLogicHandler.java - Abstract class that handles an authentication mechanism logic.
| Field Summary | |
|---|---|
protected ProxyIoSession |
proxyIoSession
Object that contains all the proxy authentication session informations. |
protected ProxyRequest |
request
The request to be handled by the proxy. |
protected int |
step
The current handshake step. |
| Constructor Summary | |
|---|---|
protected |
AbstractAuthLogicHandler(ProxyIoSession proxyIoSession)
Instantiates a handler for the given proxy session. |
| Method Summary | |
|---|---|
static void |
addKeepAliveHeaders(Map<String,List<String>> headers)
Try to force proxy connection to be kept alive. |
abstract void |
doHandshake(IoFilter.NextFilter nextFilter)
Method called at each step of the handshaking process. |
abstract void |
handleResponse(HttpProxyResponse response)
Handles a HTTP response from the proxy server. |
protected void |
writeRequest(IoFilter.NextFilter nextFilter,
HttpProxyRequest request)
Sends an HTTP request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ProxyRequest request
protected ProxyIoSession proxyIoSession
protected int step
| Constructor Detail |
|---|
protected AbstractAuthLogicHandler(ProxyIoSession proxyIoSession)
throws ProxyAuthException
proxyIoSession - the proxy session object
ProxyAuthException| Method Detail |
|---|
public abstract void doHandshake(IoFilter.NextFilter nextFilter)
throws ProxyAuthException
nextFilter - the next filter
ProxyAuthException
public abstract void handleResponse(HttpProxyResponse response)
throws ProxyAuthException
response - The HTTP response.
ProxyAuthException
protected void writeRequest(IoFilter.NextFilter nextFilter,
HttpProxyRequest request)
throws ProxyAuthException
nextFilter - the next filterrequest - the request to write
ProxyAuthExceptionpublic static void addKeepAliveHeaders(Map<String,List<String>> headers)
headers - the request headers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||