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.
|
versiondecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitversiondecoderResult, setDecoderResultprivate 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()
Socks5CommandRequesttype in interface Socks5CommandRequestpublic Socks5AddressType dstAddrType()
Socks5CommandRequestDST.ADDR field of this request.dstAddrType in interface Socks5CommandRequestpublic java.lang.String dstAddr()
Socks5CommandRequestDST.ADDR field of this request.dstAddr in interface Socks5CommandRequestpublic int dstPort()
Socks5CommandRequestDST.PORT field of this request.dstPort in interface Socks5CommandRequestpublic java.lang.String toString()
toString in class java.lang.Object