Class SocksCmdRequest
java.lang.Object
org.jboss.netty.handler.codec.socks.SocksMessage
org.jboss.netty.handler.codec.socks.SocksRequest
org.jboss.netty.handler.codec.socks.SocksCmdRequest
An socks cmd request.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.netty.handler.codec.socks.SocksRequest
SocksRequest.SocksRequestType
Nested classes/interfaces inherited from class org.jboss.netty.handler.codec.socks.SocksMessage
SocksMessage.AddressType, SocksMessage.AuthScheme, SocksMessage.AuthStatus, SocksMessage.CmdStatus, SocksMessage.CmdType, SocksMessage.MessageType, SocksMessage.ProtocolVersion, SocksMessage.SubnegotiationVersion
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocksMessage.AddressType
private final SocksMessage.CmdType
private final String
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionSocksCmdRequest
(SocksMessage.CmdType cmdType, SocksMessage.AddressType addressType, String host, int port) -
Method Summary
Modifier and TypeMethodDescriptionvoid
encodeAsByteBuf
(ChannelBuffer channelBuffer) Encode socks message into its byte representation and write it into byteBufReturns theSocksMessage.AddressType
of thisSocksCmdRequest
Returns theSocksMessage.CmdType
of thisSocksCmdRequest
getHost()
Returns host that is used as a parameter inSocksMessage.CmdType
int
getPort()
Returns port that is used as a parameter inSocksMessage.CmdType
Methods inherited from class org.jboss.netty.handler.codec.socks.SocksRequest
getSocksRequestType
Methods inherited from class org.jboss.netty.handler.codec.socks.SocksMessage
getMessageType, getProtocolVersion
-
Field Details
-
cmdType
-
addressType
-
host
-
port
private final int port
-
-
Constructor Details
-
SocksCmdRequest
public SocksCmdRequest(SocksMessage.CmdType cmdType, SocksMessage.AddressType addressType, String host, int port)
-
-
Method Details
-
getCmdType
Returns theSocksMessage.CmdType
of thisSocksCmdRequest
-
getAddressType
Returns theSocksMessage.AddressType
of thisSocksCmdRequest
-
getHost
Returns host that is used as a parameter inSocksMessage.CmdType
-
getPort
public int getPort()Returns port that is used as a parameter inSocksMessage.CmdType
-
encodeAsByteBuf
Description copied from class:SocksMessage
Encode socks message into its byte representation and write it into byteBuf- Specified by:
encodeAsByteBuf
in classSocksMessage
- Throws:
Exception
- See Also:
-