Class SocksMessage
java.lang.Object
org.jboss.netty.handler.codec.socks.SocksMessage
- Direct Known Subclasses:
SocksRequest
,SocksResponse
,UnknownSocksMessage
An abstract class that defines a SocksMessage, providing common properties for
SocksRequest
and SocksResponse
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
static enum
static enum
static enum
static enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocksMessage.MessageType
private final SocksMessage.ProtocolVersion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
encodeAsByteBuf
(ChannelBuffer channelBuffer) Encode socks message into its byte representation and write it into byteBufReturns theSocksMessage.MessageType
of thisSocksMessage
Returns theSocksMessage.ProtocolVersion
of thisSocksMessage
-
Field Details
-
messageType
-
protocolVersion
-
-
Constructor Details
-
SocksMessage
-
-
Method Details
-
getMessageType
Returns theSocksMessage.MessageType
of thisSocksMessage
- Returns:
- The
SocksMessage.MessageType
of thisSocksMessage
-
getProtocolVersion
Returns theSocksMessage.ProtocolVersion
of thisSocksMessage
- Returns:
- The
SocksMessage.ProtocolVersion
of thisSocksMessage
-
encodeAsByteBuf
Encode socks message into its byte representation and write it into byteBuf- Throws:
Exception
- See Also:
-