public final class DefaultSocks5CommandResponse extends AbstractSocks5Message implements Socks5CommandResponse
Socks5CommandResponse
.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bndAddr |
private Socks5AddressType |
bndAddrType |
private int |
bndPort |
private Socks5CommandStatus |
status |
Constructor and Description |
---|
DefaultSocks5CommandResponse(Socks5CommandStatus status,
Socks5AddressType bndAddrType) |
DefaultSocks5CommandResponse(Socks5CommandStatus status,
Socks5AddressType bndAddrType,
java.lang.String bndAddr,
int bndPort) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
bndAddr()
Returns the
BND.ADDR field of this response. |
Socks5AddressType |
bndAddrType()
Returns the address type of the
BND.ADDR field of this response. |
int |
bndPort()
Returns the
BND.PORT field of this response. |
Socks5CommandStatus |
status()
Returns the status of this response.
|
java.lang.String |
toString() |
version
decoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
version
decoderResult, setDecoderResult
private final Socks5CommandStatus status
private final Socks5AddressType bndAddrType
private final java.lang.String bndAddr
private final int bndPort
public DefaultSocks5CommandResponse(Socks5CommandStatus status, Socks5AddressType bndAddrType)
public DefaultSocks5CommandResponse(Socks5CommandStatus status, Socks5AddressType bndAddrType, java.lang.String bndAddr, int bndPort)
public Socks5CommandStatus status()
Socks5CommandResponse
status
in interface Socks5CommandResponse
public Socks5AddressType bndAddrType()
Socks5CommandResponse
BND.ADDR
field of this response.bndAddrType
in interface Socks5CommandResponse
public java.lang.String bndAddr()
Socks5CommandResponse
BND.ADDR
field of this response.bndAddr
in interface Socks5CommandResponse
public int bndPort()
Socks5CommandResponse
BND.PORT
field of this response.bndPort
in interface Socks5CommandResponse
public java.lang.String toString()
toString
in class java.lang.Object