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 defaultSocks4CommandRequest.
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdstAddr()Returns theDSTIPfield of this request.intdstPort()Returns theDSTPORTfield of this request.java.lang.StringtoString()Socks4CommandTypetype()Returns the type of this request.java.lang.StringuserId()Returns theUSERIDfield of this request.-
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
-
-
-
-
Constructor Detail
-
DefaultSocks4CommandRequest
public DefaultSocks4CommandRequest(Socks4CommandType type, java.lang.String dstAddr, int dstPort)
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 Detail
-
type
public Socks4CommandType 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
-
-