public class DefaultSocks4CommandRequest extends AbstractSocks4Message implements Socks4CommandRequest
Socks4CommandRequest
.Constructor and Description |
---|
DefaultSocks4CommandRequest(Socks4CommandType type,
String dstAddr,
int dstPort)
Creates a new instance.
|
DefaultSocks4CommandRequest(Socks4CommandType type,
String dstAddr,
int dstPort,
String userId)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
dstAddr()
Returns the
DSTIP field of this request. |
int |
dstPort()
Returns the
DSTPORT field of this request. |
String |
toString() |
Socks4CommandType |
type()
Returns the type of this request.
|
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, 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, String dstAddr, int dstPort, 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
in interface Socks4CommandRequest
public String dstAddr()
Socks4CommandRequest
DSTIP
field of this request.dstAddr
in interface Socks4CommandRequest
public int dstPort()
Socks4CommandRequest
DSTPORT
field of this request.dstPort
in interface Socks4CommandRequest
public String userId()
Socks4CommandRequest
USERID
field of this request.userId
in interface Socks4CommandRequest
Copyright © 2008–2017 The Netty Project. All rights reserved.