Package io.netty.handler.codec.socksx.v5
Class DefaultSocks5CommandResponse
java.lang.Object
io.netty.handler.codec.socksx.AbstractSocksMessage
io.netty.handler.codec.socksx.v5.AbstractSocks5Message
io.netty.handler.codec.socksx.v5.DefaultSocks5CommandResponse
- All Implemented Interfaces:
DecoderResultProvider
,SocksMessage
,Socks5CommandResponse
,Socks5Message
public final class DefaultSocks5CommandResponse
extends AbstractSocks5Message
implements Socks5CommandResponse
The default
Socks5CommandResponse
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final Socks5AddressType
private final int
private final Socks5CommandStatus
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSocks5CommandResponse
(Socks5CommandStatus status, Socks5AddressType bndAddrType) DefaultSocks5CommandResponse
(Socks5CommandStatus status, Socks5AddressType bndAddrType, String bndAddr, int bndPort) -
Method Summary
Methods inherited from class io.netty.handler.codec.socksx.v5.AbstractSocks5Message
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
-
bndAddrType
-
bndAddr
-
bndPort
private final int bndPort
-
-
Constructor Details
-
DefaultSocks5CommandResponse
-
DefaultSocks5CommandResponse
public DefaultSocks5CommandResponse(Socks5CommandStatus status, Socks5AddressType bndAddrType, String bndAddr, int bndPort)
-
-
Method Details
-
status
Description copied from interface:Socks5CommandResponse
Returns the status of this response.- Specified by:
status
in interfaceSocks5CommandResponse
-
bndAddrType
Description copied from interface:Socks5CommandResponse
Returns the address type of theBND.ADDR
field of this response.- Specified by:
bndAddrType
in interfaceSocks5CommandResponse
-
bndAddr
Description copied from interface:Socks5CommandResponse
Returns theBND.ADDR
field of this response.- Specified by:
bndAddr
in interfaceSocks5CommandResponse
-
bndPort
public int bndPort()Description copied from interface:Socks5CommandResponse
Returns theBND.PORT
field of this response.- Specified by:
bndPort
in interfaceSocks5CommandResponse
-
toString
-