Top Description Fields Constructors Methods
io.netty.handler.codec.socksx.v5

public final Class DefaultSocks5CommandResponse

extends AbstractSocks5Message
implements Socks5CommandResponse
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.socksx.v5.Socks5CommandResponse, io.netty.handler.codec.socksx.v5.Socks5Message, io.netty.handler.codec.socksx.SocksMessage, io.netty.handler.codec.DecoderResultProvider
Imports
io.netty.handler.codec.DecoderResult, io.netty.util.NetUtil, io.netty.util.internal.ObjectUtil, .StringUtil, java.net.IDN

The default Socks5CommandResponse.

Field Summary

Modifier and TypeField and Description
private final String
private final Socks5AddressType
private final int
private final Socks5CommandStatus

Constructor Summary

AccessConstructor and Description
public
public
DefaultSocks5CommandResponse(Socks5CommandStatus status, Socks5AddressType bndAddrType, String bndAddr, int bndPort)

Method Summary

Modifier and TypeMethod and Description
public String
bndAddr()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndAddr.

Returns the BND.ADDR field of this response.
public Socks5AddressType
bndAddrType()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndAddrType.

Returns the address type of the BND.ADDR field of this response.
public int
bndPort()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndPort.

Returns the BND.PORT field of this response.
public Socks5CommandStatus
status()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandResponse.status.

Returns the status of this response.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from io.netty.handler.codec.socksx.v5.AbstractSocks5Message:
version

Field Detail

bndAddrback to summary
private final String bndAddr
bndAddrTypeback to summary
private final Socks5AddressType bndAddrType
bndPortback to summary
private final int bndPort
statusback to summary
private final Socks5CommandStatus status

Constructor Detail

DefaultSocks5CommandResponseback to summary
public DefaultSocks5CommandResponse(Socks5CommandStatus status, Socks5AddressType bndAddrType)
DefaultSocks5CommandResponseback to summary
public DefaultSocks5CommandResponse(Socks5CommandStatus status, Socks5AddressType bndAddrType, String bndAddr, int bndPort)

Method Detail

bndAddrback to summary
public String bndAddr()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndAddr.

Doc from io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndAddr.

Returns the BND.ADDR field of this response.

Annotations
@Override
bndAddrTypeback to summary
public Socks5AddressType bndAddrType()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndAddrType.

Doc from io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndAddrType.

Returns the address type of the BND.ADDR field of this response.

Annotations
@Override
bndPortback to summary
public int bndPort()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndPort.

Doc from io.netty.handler.codec.socksx.v5.Socks5CommandResponse.bndPort.

Returns the BND.PORT field of this response.

Annotations
@Override
statusback to summary
public Socks5CommandStatus status()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandResponse.status.

Doc from io.netty.handler.codec.socksx.v5.Socks5CommandResponse.status.

Returns the status of this response.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override