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
FieldsModifier and TypeFieldDescriptionprivate final java.lang.Stringprivate final intprivate final Socks4CommandTypeprivate final java.lang.String -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSocks4CommandRequest(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. -
Method Summary
Methods inherited from class AbstractSocks4Message
versionMethods inherited from class AbstractSocksMessage
decoderResult, setDecoderResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface SocksMessage
version
-
Field Details
-
type
-
dstAddr
private final java.lang.String dstAddr -
dstPort
private final int dstPort -
userId
private final java.lang.String userId
-
-
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, java.lang.String dstAddr, int dstPort, java.lang.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
public java.lang.String 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
public java.lang.String userId()Description copied from interface:Socks4CommandRequestReturns theUSERIDfield of this request.- Specified by:
userIdin interfaceSocks4CommandRequest
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-