public final class DefaultSocks5CommandRequest extends AbstractSocks5Message implements Socks5CommandRequest
Socks5CommandRequest
.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
dstAddr |
private Socks5AddressType |
dstAddrType |
private int |
dstPort |
private Socks5CommandType |
type |
Constructor and Description |
---|
DefaultSocks5CommandRequest(Socks5CommandType type,
Socks5AddressType dstAddrType,
java.lang.String dstAddr,
int dstPort) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dstAddr()
Returns the
DST.ADDR field of this request. |
Socks5AddressType |
dstAddrType()
Returns the type of the
DST.ADDR field of this request. |
int |
dstPort()
Returns the
DST.PORT field of this request. |
java.lang.String |
toString() |
Socks5CommandType |
type()
Returns the type of this request.
|
version
decoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
version
decoderResult, setDecoderResult
private final Socks5CommandType type
private final Socks5AddressType dstAddrType
private final java.lang.String dstAddr
private final int dstPort
public DefaultSocks5CommandRequest(Socks5CommandType type, Socks5AddressType dstAddrType, java.lang.String dstAddr, int dstPort)
public Socks5CommandType type()
Socks5CommandRequest
type
in interface Socks5CommandRequest
public Socks5AddressType dstAddrType()
Socks5CommandRequest
DST.ADDR
field of this request.dstAddrType
in interface Socks5CommandRequest
public java.lang.String dstAddr()
Socks5CommandRequest
DST.ADDR
field of this request.dstAddr
in interface Socks5CommandRequest
public int dstPort()
Socks5CommandRequest
DST.PORT
field of this request.dstPort
in interface Socks5CommandRequest
public java.lang.String toString()
toString
in class java.lang.Object