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 Stringprivate final Socks5AddressTypeprivate final intprivate 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
versionMethods inherited from class io.netty.handler.codec.socksx.AbstractSocksMessage
decoderResult, setDecoderResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.netty.handler.codec.DecoderResultProvider
decoderResult, setDecoderResultMethods 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:Socks5CommandResponseReturns the status of this response.- Specified by:
statusin interfaceSocks5CommandResponse
-
bndAddrType
Description copied from interface:Socks5CommandResponseReturns the address type of theBND.ADDRfield of this response.- Specified by:
bndAddrTypein interfaceSocks5CommandResponse
-
bndAddr
Description copied from interface:Socks5CommandResponseReturns theBND.ADDRfield of this response.- Specified by:
bndAddrin interfaceSocks5CommandResponse
-
bndPort
public int bndPort()Description copied from interface:Socks5CommandResponseReturns theBND.PORTfield of this response.- Specified by:
bndPortin interfaceSocks5CommandResponse
-
toString
-