public class ProxyIoSession extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROXY_SESSION
The proxy session name
|
Constructor and Description |
---|
ProxyIoSession(InetSocketAddress proxyAddress,
ProxyRequest request)
Constructor.
|
public static final String PROXY_SESSION
public ProxyIoSession(InetSocketAddress proxyAddress, ProxyRequest request)
proxyAddress
- the IP address of the proxy serverrequest
- the proxy requestpublic IoSessionEventQueue getEventQueue()
public 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(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 InetSocketAddress getProxyAddress()
public boolean isReconnectionNeeded()
public void setReconnectionNeeded(boolean reconnectionNeeded)
reconnectionNeeded
- the value to set the flag topublic Charset getCharset()
public String getCharsetName()
public void setCharsetName(String charsetName)
charsetName
- the charset namepublic boolean isAuthenticationFailed()
public void setAuthenticationFailed(boolean authenticationFailed)
authenticationFailed
- the value to set the flag toCopyright © 2004–2022 Apache MINA Project. All rights reserved.