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 defaultSocks5CommandResponse.
-
-
Constructor Summary
Constructors Constructor Description DefaultSocks5CommandResponse(Socks5CommandStatus status, Socks5AddressType bndAddrType)DefaultSocks5CommandResponse(Socks5CommandStatus status, Socks5AddressType bndAddrType, java.lang.String bndAddr, int bndPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbndAddr()Returns theBND.ADDRfield of this response.Socks5AddressTypebndAddrType()Returns the address type of theBND.ADDRfield of this response.intbndPort()Returns theBND.PORTfield of this response.Socks5CommandStatusstatus()Returns the status of this response.java.lang.StringtoString()-
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
-
-
-
-
Constructor Detail
-
DefaultSocks5CommandResponse
public DefaultSocks5CommandResponse(Socks5CommandStatus status, Socks5AddressType bndAddrType)
-
DefaultSocks5CommandResponse
public DefaultSocks5CommandResponse(Socks5CommandStatus status, Socks5AddressType bndAddrType, java.lang.String bndAddr, int bndPort)
-
-
Method Detail
-
status
public Socks5CommandStatus status()
Description copied from interface:Socks5CommandResponseReturns the status of this response.- Specified by:
statusin interfaceSocks5CommandResponse
-
bndAddrType
public Socks5AddressType bndAddrType()
Description copied from interface:Socks5CommandResponseReturns the address type of theBND.ADDRfield of this response.- Specified by:
bndAddrTypein interfaceSocks5CommandResponse
-
bndAddr
public java.lang.String 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-