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 default
Socks5CommandRequest
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final Socks5AddressType
private final int
private final Socks5CommandType
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSocks5CommandRequest
(Socks5CommandType type, Socks5AddressType dstAddrType, String dstAddr, int dstPort) -
Method Summary
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
-
Field Details
-
type
-
dstAddrType
-
dstAddr
-
dstPort
private final int dstPort
-
-
Constructor Details
-
DefaultSocks5CommandRequest
public DefaultSocks5CommandRequest(Socks5CommandType type, Socks5AddressType dstAddrType, String dstAddr, int dstPort)
-
-
Method Details
-
type
Description copied from interface:Socks5CommandRequest
Returns the type of this request.- Specified by:
type
in interfaceSocks5CommandRequest
-
dstAddrType
Description copied from interface:Socks5CommandRequest
Returns the type of theDST.ADDR
field of this request.- Specified by:
dstAddrType
in interfaceSocks5CommandRequest
-
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
-