Package io.netty.handler.codec.socks
Class SocksCmdRequest
- java.lang.Object
-
- io.netty.handler.codec.socks.SocksMessage
-
- io.netty.handler.codec.socks.SocksRequest
-
- io.netty.handler.codec.socks.SocksCmdRequest
-
public final class SocksCmdRequest extends SocksRequest
An socks cmd request.- See Also:
SocksCmdResponse,SocksCmdRequestDecoder
-
-
Constructor Summary
Constructors Constructor Description SocksCmdRequest(SocksCmdType cmdType, SocksAddressType addressType, java.lang.String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocksAddressTypeaddressType()Returns theSocksAddressTypeof thisSocksCmdRequestSocksCmdTypecmdType()Returns theSocksCmdTypeof thisSocksCmdRequestvoidencodeAsByteBuf(ByteBuf byteBuf)java.lang.Stringhost()Returns host that is used as a parameter inSocksCmdTypeintport()Returns port that is used as a parameter inSocksCmdType-
Methods inherited from class io.netty.handler.codec.socks.SocksRequest
requestType
-
Methods inherited from class io.netty.handler.codec.socks.SocksMessage
protocolVersion, type
-
-
-
-
Constructor Detail
-
SocksCmdRequest
public SocksCmdRequest(SocksCmdType cmdType, SocksAddressType addressType, java.lang.String host, int port)
-
-
Method Detail
-
cmdType
public SocksCmdType cmdType()
Returns theSocksCmdTypeof thisSocksCmdRequest- Returns:
- The
SocksCmdTypeof thisSocksCmdRequest
-
addressType
public SocksAddressType addressType()
Returns theSocksAddressTypeof thisSocksCmdRequest- Returns:
- The
SocksAddressTypeof thisSocksCmdRequest
-
host
public java.lang.String host()
Returns host that is used as a parameter inSocksCmdType- Returns:
- host that is used as a parameter in
SocksCmdType
-
port
public int port()
Returns port that is used as a parameter inSocksCmdType- Returns:
- port that is used as a parameter in
SocksCmdType
-
encodeAsByteBuf
public void encodeAsByteBuf(ByteBuf byteBuf)
- Specified by:
encodeAsByteBufin classSocksMessage
-
-