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
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
bndAddr
private Socks5AddressType
bndAddrType
private int
bndPort
private Socks5CommandStatus
status
-
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.String
bndAddr()
Returns theBND.ADDR
field of this response.Socks5AddressType
bndAddrType()
Returns the address type of theBND.ADDR
field of this response.int
bndPort()
Returns theBND.PORT
field of this response.Socks5CommandStatus
status()
Returns the status of this response.java.lang.String
toString()
-
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 Detail
-
status
private final Socks5CommandStatus status
-
bndAddrType
private final Socks5AddressType bndAddrType
-
bndAddr
private final java.lang.String bndAddr
-
bndPort
private final int bndPort
-
-
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:Socks5CommandResponse
Returns the status of this response.- Specified by:
status
in interfaceSocks5CommandResponse
-
bndAddrType
public Socks5AddressType bndAddrType()
Description copied from interface:Socks5CommandResponse
Returns the address type of theBND.ADDR
field of this response.- Specified by:
bndAddrType
in interfaceSocks5CommandResponse
-
bndAddr
public java.lang.String 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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-