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 enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocksMessage.MessageTypeprivate final SocksMessage.ProtocolVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidencodeAsByteBuf(ChannelBuffer channelBuffer) Encode socks message into its byte representation and write it into byteBufReturns theSocksMessage.MessageTypeof thisSocksMessageReturns theSocksMessage.ProtocolVersionof thisSocksMessage
-
Field Details
-
messageType
-
protocolVersion
-
-
Constructor Details
-
SocksMessage
-
-
Method Details
-
getMessageType
Returns theSocksMessage.MessageTypeof thisSocksMessage- Returns:
- The
SocksMessage.MessageTypeof thisSocksMessage
-
getProtocolVersion
Returns theSocksMessage.ProtocolVersionof thisSocksMessage- Returns:
- The
SocksMessage.ProtocolVersionof thisSocksMessage
-
encodeAsByteBuf
Encode socks message into its byte representation and write it into byteBuf- Throws:
Exception- See Also:
-