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
-
public final class SocksCmdRequest extends SocksRequest
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
-
-
Constructor Summary
Constructors Constructor Description SocksCmdRequest(SocksMessage.CmdType cmdType, SocksMessage.AddressType addressType, String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encodeAsByteBuf(ChannelBuffer channelBuffer)
Encode socks message into its byte representation and write it into byteBufSocksMessage.AddressType
getAddressType()
Returns theSocksMessage.AddressType
of thisSocksCmdRequest
SocksMessage.CmdType
getCmdType()
Returns theSocksMessage.CmdType
of thisSocksCmdRequest
String
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
-
-
-
-
Constructor Detail
-
SocksCmdRequest
public SocksCmdRequest(SocksMessage.CmdType cmdType, SocksMessage.AddressType addressType, String host, int port)
-
-
Method Detail
-
getCmdType
public SocksMessage.CmdType getCmdType()
Returns theSocksMessage.CmdType
of thisSocksCmdRequest
-
getAddressType
public SocksMessage.AddressType getAddressType()
Returns theSocksMessage.AddressType
of thisSocksCmdRequest
-
getHost
public String 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
public void encodeAsByteBuf(ChannelBuffer channelBuffer) throws Exception
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:
ChannelBuffer
-
-