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. |
version
decoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
version
decoderResult, setDecoderResult
public 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()
Socks4CommandRequest
type
在接口中 Socks4CommandRequest
public java.lang.String dstAddr()
Socks4CommandRequest
DSTIP
field of this request.dstAddr
在接口中 Socks4CommandRequest
public int dstPort()
Socks4CommandRequest
DSTPORT
field of this request.dstPort
在接口中 Socks4CommandRequest
public java.lang.String userId()
Socks4CommandRequest
USERID
field of this request.userId
在接口中 Socks4CommandRequest
public java.lang.String toString()
toString
在类中 java.lang.Object