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

public final Class DefaultSocks5CommandRequest

extends AbstractSocks5Message
implements Socks5CommandRequest
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.socksx.v5.Socks5CommandRequest, 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 Socks5CommandRequest.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
DefaultSocks5CommandRequest(Socks5CommandType type, Socks5AddressType dstAddrType, String dstAddr, int dstPort)

Method Summary

Modifier and TypeMethod and Description
public String
dstAddr()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstAddr.

Returns the DST.ADDR field of this request.
public Socks5AddressType
dstAddrType()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstAddrType.

Returns the type of the DST.ADDR field of this request.
public int
dstPort()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstPort.

Returns the DST.PORT field of this request.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public Socks5CommandType
type()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandRequest.type.

Returns the type of this request.
Inherited from io.netty.handler.codec.socksx.v5.AbstractSocks5Message:
version

Field Detail

dstAddrback to summary
private final String dstAddr
dstAddrTypeback to summary
private final Socks5AddressType dstAddrType
dstPortback to summary
private final int dstPort
typeback to summary
private final Socks5CommandType type

Constructor Detail

DefaultSocks5CommandRequestback to summary
public DefaultSocks5CommandRequest(Socks5CommandType type, Socks5AddressType dstAddrType, String dstAddr, int dstPort)

Method Detail

dstAddrback to summary
public String dstAddr()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstAddr.

Doc from io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstAddr.

Returns the DST.ADDR field of this request.

Annotations
@Override
dstAddrTypeback to summary
public Socks5AddressType dstAddrType()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstAddrType.

Doc from io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstAddrType.

Returns the type of the DST.ADDR field of this request.

Annotations
@Override
dstPortback to summary
public int dstPort()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstPort.

Doc from io.netty.handler.codec.socksx.v5.Socks5CommandRequest.dstPort.

Returns the DST.PORT field of this request.

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
typeback to summary
public Socks5CommandType type()

Implements io.netty.handler.codec.socksx.v5.Socks5CommandRequest.type.

Doc from io.netty.handler.codec.socksx.v5.Socks5CommandRequest.type.

Returns the type of this request.

Annotations
@Override