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.-
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 AbstractSocks4Message
versionMethods inherited from class AbstractSocksMessage
decoderResult, setDecoderResultMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface SocksMessage
version
-
Constructor Details
-
DefaultSocks4CommandRequest
Creates a new instance.- Parameters:
type- the type of the requestdstAddr- theDSTIPfield of the requestdstPort- theDSTPORTfield 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- theDSTIPfield of the requestdstPort- theDSTPORTfield of the requestuserId- theUSERIDfield of the request
-
-
Method Details
-
type
Description copied from interface:Socks4CommandRequestReturns the type of this request.- Specified by:
typein interfaceSocks4CommandRequest
-
dstAddr
Description copied from interface:Socks4CommandRequestReturns theDSTIPfield of this request.- Specified by:
dstAddrin interfaceSocks4CommandRequest
-
dstPort
public int dstPort()Description copied from interface:Socks4CommandRequestReturns theDSTPORTfield of this request.- Specified by:
dstPortin interfaceSocks4CommandRequest
-
userId
Description copied from interface:Socks4CommandRequestReturns theUSERIDfield of this request.- Specified by:
userIdin interfaceSocks4CommandRequest
-
toString
-