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.String
dstAddr()
Returns theDSTIP
field of this request.int
dstPort()
Returns theDSTPORT
field of this request.java.lang.String
toString()
Socks4CommandType
type()
Returns the type of this request.java.lang.String
userId()
Returns theUSERID
field 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
- theDSTIP
field of the requestdstPort
- theDSTPORT
field 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
- theDSTIP
field of the requestdstPort
- theDSTPORT
field of the requestuserId
- theUSERID
field of the request
-
-
Method Detail
-
type
public Socks4CommandType type()
Description copied from interface:Socks4CommandRequest
Returns the type of this request.- Specified by:
type
in interfaceSocks4CommandRequest
-
dstAddr
public java.lang.String 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
public java.lang.String userId()
Description copied from interface:Socks4CommandRequest
Returns theUSERID
field of this request.- Specified by:
userId
in interfaceSocks4CommandRequest
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-