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 default
Socks4CommandResponse.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.DefaultSocks4CommandResponse(Socks4CommandStatus status, String dstAddr, int dstPort) Creates a new instance. -
Method Summary
Methods inherited from class AbstractSocks4Message
versionMethods inherited from class AbstractSocksMessage
decoderResult, setDecoderResultMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface SocksMessage
version
-
Constructor Details
-
DefaultSocks4CommandResponse
Creates a new instance.- Parameters:
status- the status of the response
-
DefaultSocks4CommandResponse
Creates a new instance.- Parameters:
status- the status of the responsedstAddr- theDSTIPfield of the responsedstPort- theDSTPORTfield of the response
-
-
Method Details
-
status
Description copied from interface:Socks4CommandResponseReturns the status of this response.- Specified by:
statusin interfaceSocks4CommandResponse
-
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
-