GeezerVison is showing netty.io — Socks5ProxyHandler (Netty API Reference (4.1.141.Final))
Class Socks5ProxyHandler
-
-
Constructor Summary
Constructors
-
Method Summary
Modifier and Type
Method
Description
protected void
Adds the codec handlers required to communicate with the proxy server.
Returns the name of the authentication scheme in use.
protected boolean
Handles the message received from the proxy server.
Returns a new message that is sent at first time when the connection to the proxy server has been established.
Returns the name of the proxy protocol in use.
protected void
protected void
Methods inherited from class ProxyHandler
channelActive, channelInactive, channelRead, channelReadComplete, connect, connectFuture, connectTimeoutMillis, destinationAddress, exceptionCaught, exceptionMessage, flush, handlerAdded, handlerRemoved, isConnected, proxyAddress, sendToProxyServer, setConnectTimeoutMillis, write
Modifier and Type
Method
Description
final void
final void
final void
final void
final void
Returns a Future that is notified when the connection to the destination has been established
or the connection attempt has failed.
final long
Returns the connect timeout in millis.
Returns the address of the destination to connect to via the proxy server.
final void
Decorates the specified exception message with the common information such as the current protocol,
authentication scheme, proxy address, and destination address.
final void
final void
Do nothing by default, sub-classes may override this method.
void
Do nothing by default, sub-classes may override this method.
final boolean
Returns true if and only if the connection to the destination has been established successfully.
Returns the address of the proxy server.
protected final void
Sends the specified message to the proxy server.
final void
Sets the connect timeout in millis.
final void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
-
-
-
-
-
-
-
newInitialMessage
Returns a new message that is sent at first time when the connection to the proxy server has been established.
- Specified by:
newInitialMessage in class ProxyHandler
- Returns:
- the initial message, or
null if the proxy server is expected to send the first message instead
- Throws:
Exception
-
handleResponse
Handles the message received from the proxy server.
- Specified by:
handleResponse in class ProxyHandler
- Returns:
true if the connection to the destination has been established,
false if the connection to the destination has not been established and more messages are
expected from the proxy server
- Throws:
Exception
|