Package io.netty.handler.codec.socksx.v4
Class DefaultSocks4CommandResponse
- java.lang.Object
-
- io.netty.handler.codec.socksx.AbstractSocksMessage
-
- io.netty.handler.codec.socksx.v4.AbstractSocks4Message
-
- io.netty.handler.codec.socksx.v4.DefaultSocks4CommandResponse
-
- All Implemented Interfaces:
DecoderResultProvider
,SocksMessage
,Socks4CommandResponse
,Socks4Message
public class DefaultSocks4CommandResponse extends AbstractSocks4Message implements Socks4CommandResponse
The defaultSocks4CommandResponse
.
-
-
Constructor Summary
Constructors Constructor Description DefaultSocks4CommandResponse(Socks4CommandStatus status)
Creates a new instance.DefaultSocks4CommandResponse(Socks4CommandStatus status, java.lang.String dstAddr, int dstPort)
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 response.int
dstPort()
Returns theDSTPORT
field of this response.Socks4CommandStatus
status()
Returns the status of this response.java.lang.String
toString()
-
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
-
DefaultSocks4CommandResponse
public DefaultSocks4CommandResponse(Socks4CommandStatus status)
Creates a new instance.- Parameters:
status
- the status of the response
-
DefaultSocks4CommandResponse
public DefaultSocks4CommandResponse(Socks4CommandStatus status, java.lang.String dstAddr, int dstPort)
Creates a new instance.- Parameters:
status
- the status of the responsedstAddr
- theDSTIP
field of the responsedstPort
- theDSTPORT
field of the response
-
-
Method Detail
-
status
public Socks4CommandStatus status()
Description copied from interface:Socks4CommandResponse
Returns the status of this response.- Specified by:
status
in interfaceSocks4CommandResponse
-
dstAddr
public java.lang.String dstAddr()
Description copied from interface:Socks4CommandResponse
Returns theDSTIP
field of this response.- Specified by:
dstAddr
in interfaceSocks4CommandResponse
-
dstPort
public int dstPort()
Description copied from interface:Socks4CommandResponse
Returns theDSTPORT
field of this response.- Specified by:
dstPort
in interfaceSocks4CommandResponse
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-