public class HttpBasicAuthLogicHandler extends AbstractAuthLogicHandler
proxyIoSession, request, step
构造器和说明 |
---|
HttpBasicAuthLogicHandler(ProxyIoSession proxyIoSession)
Build an HttpBasicAuthLogicHandler
|
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
createAuthorization(java.lang.String username,
java.lang.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
在类中 AbstractAuthLogicHandler
nextFilter
- the next filterProxyAuthException
- If we get an error during the proxy authenticationpublic static java.lang.String createAuthorization(java.lang.String username, java.lang.String password)
username
- the user namepassword
- the user passwordpublic void handleResponse(HttpProxyResponse response) throws ProxyAuthException
handleResponse
在类中 AbstractAuthLogicHandler
response
- The HTTP response.ProxyAuthException
- If we get an error during the proxy authentication