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.StringdstAddr()Returns theDSTIPfield of this response.intdstPort()Returns theDSTPORTfield of this response.Socks4CommandStatusstatus()Returns the status of this response.java.lang.StringtoString()-
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- theDSTIPfield of the responsedstPort- theDSTPORTfield of the response
-
-
Method Detail
-
status
public Socks4CommandStatus status()
Description copied from interface:Socks4CommandResponseReturns the status of this response.- Specified by:
statusin interfaceSocks4CommandResponse
-
dstAddr
public java.lang.String dstAddr()
Description copied from interface:Socks4CommandResponseReturns theDSTIPfield of this response.- Specified by:
dstAddrin interfaceSocks4CommandResponse
-
dstPort
public int dstPort()
Description copied from interface:Socks4CommandResponseReturns theDSTPORTfield of this response.- Specified by:
dstPortin interfaceSocks4CommandResponse
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-