Socks5Message into a Buffer.
| Modifier and Type | Field and Description |
|---|---|
| private final Socks5AddressEncoder | |
| public static final Socks5ClientEncoder |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | Socks5ClientEncoder(Socks5AddressEncoder addressEncoder)
Creates a new instance with the specified |
| Modifier and Type | Method and Description |
|---|---|
| protected final Socks5AddressEncoder | |
| protected Buffer | allocateBuffer(ChannelHandlerContext
the ctx, Socks5Message ChannelHandlerContext which this MessageToByteEncoder belongs tothe message to be encoded msg)Implements abstract io. Buffer which will be used as argument of encode(ChannelHandlerContext, I, Buffer).
|
| protected void | encode(ChannelHandlerContext
the ctx, Socks5Message ChannelHandlerContext which this MessageToByteEncoder belongs tothe message to encode msg, Buffer the out)Buffer into which the encoded message will be writtenImplements abstract io. Buffer.
|
| private static void | |
| private void | |
| private static void | |
| public boolean | isSharable()
Overrides default io. true if this handler is sharable and thus can be added
to more than one ChannelPipeline.
|
| addressEncoder | back to summary |
|---|---|
| private final Socks5AddressEncoder addressEncoder | |
| DEFAULT | back to summary |
|---|---|
| public static final Socks5ClientEncoder DEFAULT | |
| Socks5ClientEncoder | back to summary |
|---|---|
| protected Socks5ClientEncoder() Creates a new instance with the default | |
| Socks5ClientEncoder | back to summary |
|---|---|
| public Socks5ClientEncoder(Socks5AddressEncoder addressEncoder) Creates a new instance with the specified | |
| addressEncoder | back to summary |
|---|---|
| protected final Socks5AddressEncoder addressEncoder() Returns the | |
| allocateBuffer | back to summary |
|---|---|
| protected Buffer allocateBuffer(ChannelHandlerContext ctx, Socks5Message msg) Implements abstract io. Doc from io. Allocate a
| |
| encode | back to summary |
|---|---|
| protected void encode(ChannelHandlerContext ctx, Socks5Message msg, Buffer out) throws Exception Implements abstract io. Doc from io. Encode a message into a
| |
| encodeAuthMethodRequest | back to summary |
|---|---|
| private static void encodeAuthMethodRequest(Socks5InitialRequest msg, Buffer out) | |
| encodeCommandRequest | back to summary |
|---|---|
| private void encodeCommandRequest(Socks5CommandRequest msg, Buffer out) throws Exception | |
| encodePasswordAuthRequest | back to summary |
|---|---|
| private static void encodePasswordAuthRequest(Socks5PasswordAuthRequest msg, Buffer out) | |
| isSharable | back to summary |
|---|---|
| public boolean isSharable() Overrides default io. Doc from io. Returns
| |