Top Description Fields Constructors Methods
io.netty.handler.codec.socks

public abstract Class SocksMessage

extends Object
Class Inheritance
Known Direct Subclasses
io.netty.handler.codec.socks.SocksRequest, io.netty.handler.codec.socks.SocksResponse
Imports
io.netty.buffer.ByteBuf, io.netty.util.internal.ObjectUtil

An abstract class that defines a SocksMessage, providing common properties for SocksRequest and SocksResponse.
See Also
SocksRequest, SocksResponse

Field Summary

Modifier and TypeField and Description
private final SocksProtocolVersion
private final SocksMessageType

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public abstract void
encodeAsByteBuf(ByteBuf byteBuf)

Deprecated Do not use; this method was intended for an internal use only.
public SocksProtocolVersion
public SocksMessageType

Returns:

The SocksMessageType of this SocksMessage
type
()

Returns the SocksMessageType of this SocksMessage

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

protocolVersionback to summary
private final SocksProtocolVersion protocolVersion
typeback to summary
private final SocksMessageType type

Constructor Detail

SocksMessageback to summary
protected SocksMessage(SocksMessageType type)

Method Detail

encodeAsByteBufback to summary
public abstract void encodeAsByteBuf(ByteBuf byteBuf)

Deprecated

Do not use; this method was intended for an internal use only.

Annotations
@Deprecated
protocolVersionback to summary
public SocksProtocolVersion protocolVersion()

Returns the SocksProtocolVersion of this SocksMessage

Returns:SocksProtocolVersion

The SocksProtocolVersion of this SocksMessage

typeback to summary
public SocksMessageType type()

Returns the SocksMessageType of this SocksMessage

Returns:SocksMessageType

The SocksMessageType of this SocksMessage