public abstract class AbstractAuthLogicHandler
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
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.
|
限定符 | 构造器和说明 |
---|---|
protected |
AbstractAuthLogicHandler(ProxyIoSession proxyIoSession)
Instantiates a handler for the given proxy session.
|
限定符和类型 | 方法和说明 |
---|---|
static void |
addKeepAliveHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.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.
|
protected ProxyRequest request
protected ProxyIoSession proxyIoSession
protected int step
protected AbstractAuthLogicHandler(ProxyIoSession proxyIoSession) throws ProxyAuthException
proxyIoSession
- the proxy session objectProxyAuthException
- If we get an error during the proxy authenticationpublic abstract void doHandshake(IoFilter.NextFilter nextFilter) throws ProxyAuthException
nextFilter
- the next filterProxyAuthException
- If we get an error during the proxy authenticationpublic abstract void handleResponse(HttpProxyResponse response) throws ProxyAuthException
response
- The HTTP response.ProxyAuthException
- If we get an error during the proxy authenticationprotected void writeRequest(IoFilter.NextFilter nextFilter, HttpProxyRequest request) throws ProxyAuthException
nextFilter
- the next filterrequest
- the request to writeProxyAuthException
- If we get an error during the proxy authenticationpublic static void addKeepAliveHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
headers
- the request headers