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 default
Socks4CommandResponse
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final int
private final Socks4CommandStatus
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.DefaultSocks4CommandResponse
(Socks4CommandStatus status, String dstAddr, int dstPort) Creates a new instance. -
Method Summary
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
-
Field Details
-
status
-
dstAddr
-
dstPort
private final int dstPort
-
-
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
- theDSTIP
field of the responsedstPort
- theDSTPORT
field of the response
-
-
Method Details
-
status
Description copied from interface:Socks4CommandResponse
Returns the status of this response.- Specified by:
status
in interfaceSocks4CommandResponse
-
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
-