Package io.netty.handler.codec.socksx.v4
Class DefaultSocks4CommandRequest
java.lang.Object
io.netty.handler.codec.socksx.AbstractSocksMessage
io.netty.handler.codec.socksx.v4.AbstractSocks4Message
io.netty.handler.codec.socksx.v4.DefaultSocks4CommandRequest
- All Implemented Interfaces:
DecoderResultProvider
,SocksMessage
,Socks4CommandRequest
,Socks4Message
public class DefaultSocks4CommandRequest
extends AbstractSocks4Message
implements Socks4CommandRequest
The default
Socks4CommandRequest
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSocks4CommandRequest
(Socks4CommandType type, String dstAddr, int dstPort) Creates a new instance.DefaultSocks4CommandRequest
(Socks4CommandType type, String dstAddr, int dstPort, String userId) Creates a new instance. -
Method Summary
Methods inherited from class io.netty.handler.codec.socksx.v4.AbstractSocks4Message
version
Methods inherited from class io.netty.handler.codec.socksx.AbstractSocksMessage
decoderResult, setDecoderResult
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResult
Methods inherited from interface io.netty.handler.codec.socksx.SocksMessage
version
-
Field Details
-
type
-
dstAddr
-
dstPort
private final int dstPort -
userId
-
-
Constructor Details
-
DefaultSocks4CommandRequest
Creates a new instance.- Parameters:
type
- the type of the requestdstAddr
- theDSTIP
field of the requestdstPort
- theDSTPORT
field of the request
-
DefaultSocks4CommandRequest
public DefaultSocks4CommandRequest(Socks4CommandType type, String dstAddr, int dstPort, String userId) Creates a new instance.- Parameters:
type
- the type of the requestdstAddr
- theDSTIP
field of the requestdstPort
- theDSTPORT
field of the requestuserId
- theUSERID
field of the request
-
-
Method Details
-
type
Description copied from interface:Socks4CommandRequest
Returns the type of this request.- Specified by:
type
in interfaceSocks4CommandRequest
-
dstAddr
Description copied from interface:Socks4CommandRequest
Returns theDSTIP
field of this request.- Specified by:
dstAddr
in interfaceSocks4CommandRequest
-
dstPort
public int dstPort()Description copied from interface:Socks4CommandRequest
Returns theDSTPORT
field of this request.- Specified by:
dstPort
in interfaceSocks4CommandRequest
-
userId
Description copied from interface:Socks4CommandRequest
Returns theUSERID
field of this request.- Specified by:
userId
in interfaceSocks4CommandRequest
-
toString
-