public class DefaultSocks4CommandResponse extends AbstractSocks4Message implements Socks4CommandResponse
Socks4CommandResponse.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
dstAddr |
private int |
dstPort |
private Socks4CommandStatus |
status |
| Constructor and Description |
|---|
DefaultSocks4CommandResponse(Socks4CommandStatus status)
Creates a new instance.
|
DefaultSocks4CommandResponse(Socks4CommandStatus status,
java.lang.String dstAddr,
int dstPort)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
dstAddr()
Returns the
DSTIP field of this response. |
int |
dstPort()
Returns the
DSTPORT field of this response. |
Socks4CommandStatus |
status()
Returns the status of this response.
|
java.lang.String |
toString() |
versiondecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitversiondecoderResult, setDecoderResultprivate final Socks4CommandStatus status
private final java.lang.String dstAddr
private final int dstPort
public DefaultSocks4CommandResponse(Socks4CommandStatus status)
status - the status of the responsepublic DefaultSocks4CommandResponse(Socks4CommandStatus status, java.lang.String dstAddr, int dstPort)
status - the status of the responsedstAddr - the DSTIP field of the responsedstPort - the DSTPORT field of the responsepublic Socks4CommandStatus status()
Socks4CommandResponsestatus in interface Socks4CommandResponsepublic java.lang.String dstAddr()
Socks4CommandResponseDSTIP field of this response.dstAddr in interface Socks4CommandResponsepublic int dstPort()
Socks4CommandResponseDSTPORT field of this response.dstPort in interface Socks4CommandResponsepublic java.lang.String toString()
toString in class java.lang.Object