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.StringdstAddr()Returns theDST.ADDRfield of this request.Socks5AddressTypedstAddrType()Returns the type of theDST.ADDRfield of this request.intdstPort()Returns theDST.PORTfield of this request.java.lang.StringtoString()Socks5CommandTypetype()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:Socks5CommandRequestReturns the type of this request.- Specified by:
typein interfaceSocks5CommandRequest
-
dstAddrType
public Socks5AddressType dstAddrType()
Description copied from interface:Socks5CommandRequestReturns the type of theDST.ADDRfield of this request.- Specified by:
dstAddrTypein interfaceSocks5CommandRequest
-
dstAddr
public java.lang.String dstAddr()
Description copied from interface:Socks5CommandRequestReturns theDST.ADDRfield of this request.- Specified by:
dstAddrin interfaceSocks5CommandRequest
-
dstPort
public int dstPort()
Description copied from interface:Socks5CommandRequestReturns theDST.PORTfield of this request.- Specified by:
dstPortin interfaceSocks5CommandRequest
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-