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.SocksRequestTypeNested 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.AddressTypeprivate final SocksMessage.CmdTypeprivate final Stringprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionSocksCmdRequest(SocksMessage.CmdType cmdType, SocksMessage.AddressType addressType, String host, int port) -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeAsByteBuf(ChannelBuffer channelBuffer) Encode socks message into its byte representation and write it into byteBufReturns theSocksMessage.AddressTypeof thisSocksCmdRequestReturns theSocksMessage.CmdTypeof thisSocksCmdRequestgetHost()Returns host that is used as a parameter inSocksMessage.CmdTypeintgetPort()Returns port that is used as a parameter inSocksMessage.CmdTypeMethods inherited from class org.jboss.netty.handler.codec.socks.SocksRequest
getSocksRequestTypeMethods 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.CmdTypeof thisSocksCmdRequest -
getAddressType
Returns theSocksMessage.AddressTypeof 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:SocksMessageEncode socks message into its byte representation and write it into byteBuf- Specified by:
encodeAsByteBufin classSocksMessage- Throws:
Exception- See Also:
-