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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final java.lang.Stringprivate final intprivate final Socks4CommandStatus -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.DefaultSocks4CommandResponse(Socks4CommandStatus status, java.lang.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DecoderResultProvider
decoderResult, setDecoderResultMethods inherited from interface SocksMessage
version
-
Field Details
-
status
-
dstAddr
private final java.lang.String dstAddr -
dstPort
private final int dstPort
-
-
Constructor Details
-
DefaultSocks4CommandResponse
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 Details
-
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
-