| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private String | |
| private String | |
| private static final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addCodec(ChannelHandlerContext ctx)
Implements abstract io. |
| public String | authScheme()
Implements abstract io. |
| protected boolean | handleResponse(ChannelHandlerContext ctx, Object response)
Implements abstract io. |
| protected Object | newInitialMessage(ChannelHandlerContext ctx)
Implements abstract io. |
| public String | protocol()
Implements abstract io. |
| protected void | removeDecoder(ChannelHandlerContext ctx)
Implements abstract io. addCodec(ChannelHandlerContext).
|
| protected void | removeEncoder(ChannelHandlerContext ctx)
Implements abstract io. addCodec(ChannelHandlerContext).
|
| public String |
| AUTH_USERNAME | back to summary |
|---|---|
| private static final String AUTH_USERNAME | |
| decoderName | back to summary |
|---|---|
| private String decoderName | |
| encoderName | back to summary |
|---|---|
| private String encoderName | |
| PROTOCOL | back to summary |
|---|---|
| private static final String PROTOCOL | |
| username | back to summary |
|---|---|
| private final String username | |
| Socks4ProxyHandler | back to summary |
|---|---|
| public Socks4ProxyHandler(SocketAddress proxyAddress) | |
| Socks4ProxyHandler | back to summary |
|---|---|
| public Socks4ProxyHandler(SocketAddress proxyAddress, String username) | |
| addCodec | back to summary |
|---|---|
| protected void addCodec(ChannelHandlerContext ctx) throws Exception Implements abstract io. Doc from io. Adds the codec handlers required to communicate with the proxy server.
| |
| authScheme | back to summary |
|---|---|
| public String authScheme() Implements abstract io. Doc from io. Returns the name of the authentication scheme in use.
| |
| handleResponse | back to summary |
|---|---|
| protected boolean handleResponse(ChannelHandlerContext ctx, Object response) throws Exception Implements abstract io. Doc from io. Handles the message received from the proxy server.
| |
| newInitialMessage | back to summary |
|---|---|
| protected Object newInitialMessage(ChannelHandlerContext ctx) throws Exception Implements abstract io. Doc from io. Returns a new message that is sent at first time when the connection to the proxy server has been established. | |
| protocol | back to summary |
|---|---|
| public String protocol() Implements abstract io. Doc from io. Returns the name of the proxy protocol in use.
| |
| removeDecoder | back to summary |
|---|---|
| protected void removeDecoder(ChannelHandlerContext ctx) throws Exception Implements abstract io. Doc from io. Removes the decoders added in
| |
| removeEncoder | back to summary |
|---|---|
| protected void removeEncoder(ChannelHandlerContext ctx) throws Exception Implements abstract io. Doc from io. Removes the encoders added in
| |
| username | back to summary |
|---|---|
| public String username() | |