Package io.netty.handler.codec.socksx.v5
Class DefaultSocks5CommandRequest
- java.lang.Object
-
- io.netty.handler.codec.socksx.AbstractSocksMessage
-
- io.netty.handler.codec.socksx.v5.AbstractSocks5Message
-
- io.netty.handler.codec.socksx.v5.DefaultSocks5CommandRequest
-
- All Implemented Interfaces:
DecoderResultProvider
,SocksMessage
,Socks5CommandRequest
,Socks5Message
public final class DefaultSocks5CommandRequest extends AbstractSocks5Message implements Socks5CommandRequest
The defaultSocks5CommandRequest
.
-
-
Constructor Summary
Constructors Constructor Description DefaultSocks5CommandRequest(Socks5CommandType type, Socks5AddressType dstAddrType, java.lang.String dstAddr, int dstPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
dstAddr()
Returns theDST.ADDR
field of this request.Socks5AddressType
dstAddrType()
Returns the type of theDST.ADDR
field of this request.int
dstPort()
Returns theDST.PORT
field of this request.java.lang.String
toString()
Socks5CommandType
type()
Returns the type of this request.-
Methods inherited from class io.netty.handler.codec.socksx.v5.AbstractSocks5Message
version
-
Methods inherited from class io.netty.handler.codec.socksx.AbstractSocksMessage
decoderResult, setDecoderResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
-
Methods inherited from interface io.netty.handler.codec.socksx.SocksMessage
version
-
-
-
-
Constructor Detail
-
DefaultSocks5CommandRequest
public DefaultSocks5CommandRequest(Socks5CommandType type, Socks5AddressType dstAddrType, java.lang.String dstAddr, int dstPort)
-
-
Method Detail
-
type
public Socks5CommandType type()
Description copied from interface:Socks5CommandRequest
Returns the type of this request.- Specified by:
type
in interfaceSocks5CommandRequest
-
dstAddrType
public Socks5AddressType dstAddrType()
Description copied from interface:Socks5CommandRequest
Returns the type of theDST.ADDR
field of this request.- Specified by:
dstAddrType
in interfaceSocks5CommandRequest
-
dstAddr
public java.lang.String dstAddr()
Description copied from interface:Socks5CommandRequest
Returns theDST.ADDR
field of this request.- Specified by:
dstAddr
in interfaceSocks5CommandRequest
-
dstPort
public int dstPort()
Description copied from interface:Socks5CommandRequest
Returns theDST.PORT
field of this request.- Specified by:
dstPort
in interfaceSocks5CommandRequest
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-