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 SocksAddressType
addressType()
Returns theSocksAddressType
of thisSocksCmdRequest
SocksCmdType
cmdType()
Returns theSocksCmdType
of thisSocksCmdRequest
void
encodeAsByteBuf(ByteBuf byteBuf)
java.lang.String
host()
Returns host that is used as a parameter inSocksCmdType
int
port()
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 theSocksCmdType
of thisSocksCmdRequest
- Returns:
- The
SocksCmdType
of thisSocksCmdRequest
-
addressType
public SocksAddressType addressType()
Returns theSocksAddressType
of thisSocksCmdRequest
- Returns:
- The
SocksAddressType
of 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:
encodeAsByteBuf
in classSocksMessage
-
-