public class ProxyIoSession
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
PROXY_SESSION |
构造器和说明 |
---|
ProxyIoSession(java.net.InetSocketAddress proxyAddress,
ProxyRequest request)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
java.nio.charset.Charset |
getCharset() |
java.lang.String |
getCharsetName() |
ProxyConnector |
getConnector() |
IoSessionEventQueue |
getEventQueue() |
ProxyLogicHandler |
getHandler() |
java.util.List<HttpAuthenticationMethods> |
getPreferedOrder() |
java.net.InetSocketAddress |
getProxyAddress() |
ProxyFilter |
getProxyFilter() |
ProxyRequest |
getRequest() |
IoSession |
getSession() |
boolean |
isAuthenticationFailed() |
boolean |
isReconnectionNeeded() |
void |
setAuthenticationFailed(boolean authenticationFailed)
Sets the authentication failed flag.
|
void |
setCharsetName(java.lang.String charsetName)
Sets the charset to use.
|
void |
setConnector(ProxyConnector connector)
Sets the connector reference of this proxy session.
|
void |
setHandler(ProxyLogicHandler handler)
Sets the
ProxyLogicHandler to use. |
void |
setPreferedOrder(java.util.List<HttpAuthenticationMethods> preferedOrder)
Sets the ordered list of prefered authentication mechanisms.
|
void |
setProxyFilter(ProxyFilter proxyFilter)
Sets the
ProxyFilter . |
void |
setReconnectionNeeded(boolean reconnectionNeeded)
Sets the reconnection needed flag.
|
void |
setSession(IoSession session)
Sets the
IoSession in use. |
public ProxyIoSession(java.net.InetSocketAddress proxyAddress, ProxyRequest request)
proxyAddress
- the IP address of the proxy serverrequest
- the proxy requestpublic IoSessionEventQueue getEventQueue()
public java.util.List<HttpAuthenticationMethods> getPreferedOrder()
HttpSmartProxyHandler
to determine
which authentication mechanism to use first between those accepted by the
proxy server. This list is only used when connecting to an http proxy.public void setPreferedOrder(java.util.List<HttpAuthenticationMethods> preferedOrder)
preferedOrder
- the ordered listpublic ProxyLogicHandler getHandler()
ProxyLogicHandler
currently in use.public void setHandler(ProxyLogicHandler handler)
ProxyLogicHandler
to use.handler
- the ProxyLogicHandler
instancepublic ProxyFilter getProxyFilter()
ProxyFilter
.public void setProxyFilter(ProxyFilter proxyFilter)
ProxyFilter
.
Note : Please do not call this method from your code it could result
in an unexpected behaviour.proxyFilter
- the filterpublic ProxyRequest getRequest()
public void setSession(IoSession session)
IoSession
in use.
Note : Please do not call this method from your code it could result in an
unexpected behaviour.session
- the current io sessionpublic ProxyConnector getConnector()
public void setConnector(ProxyConnector connector)
connector
- the proxy connectorpublic java.net.InetSocketAddress getProxyAddress()
public boolean isReconnectionNeeded()
public void setReconnectionNeeded(boolean reconnectionNeeded)
reconnectionNeeded
- the value to set the flag topublic java.nio.charset.Charset getCharset()
public java.lang.String getCharsetName()
DEFAULT_ENCODING
if null.public void setCharsetName(java.lang.String charsetName)
charsetName
- the charset namepublic boolean isAuthenticationFailed()
public void setAuthenticationFailed(boolean authenticationFailed)
authenticationFailed
- the value to set the flag to