public class DefaultSocks4CommandRequest extends AbstractSocks4Message implements Socks4CommandRequest
Socks4CommandRequest.| 构造器和说明 |
|---|
DefaultSocks4CommandRequest(Socks4CommandType type,
java.lang.String dstAddr,
int dstPort)
Creates a new instance.
|
DefaultSocks4CommandRequest(Socks4CommandType type,
java.lang.String dstAddr,
int dstPort,
java.lang.String userId)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
dstAddr()
Returns the
DSTIP field of this request. |
int |
dstPort()
Returns the
DSTPORT field of this request. |
java.lang.String |
toString() |
Socks4CommandType |
type()
Returns the type of this request.
|
java.lang.String |
userId()
Returns the
USERID field of this request. |
versiondecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitversiondecoderResult, setDecoderResultpublic DefaultSocks4CommandRequest(Socks4CommandType type, java.lang.String dstAddr, int dstPort)
type - the type of the requestdstAddr - the DSTIP field of the requestdstPort - the DSTPORT field of the requestpublic DefaultSocks4CommandRequest(Socks4CommandType type, java.lang.String dstAddr, int dstPort, java.lang.String userId)
type - the type of the requestdstAddr - the DSTIP field of the requestdstPort - the DSTPORT field of the requestuserId - the USERID field of the requestpublic Socks4CommandType type()
Socks4CommandRequesttype 在接口中 Socks4CommandRequestpublic java.lang.String dstAddr()
Socks4CommandRequestDSTIP field of this request.dstAddr 在接口中 Socks4CommandRequestpublic int dstPort()
Socks4CommandRequestDSTPORT field of this request.dstPort 在接口中 Socks4CommandRequestpublic java.lang.String userId()
Socks4CommandRequestUSERID field of this request.userId 在接口中 Socks4CommandRequestpublic java.lang.String toString()
toString 在类中 java.lang.Object