Top Description Fields Constructors Methods
io.netty.contrib.handler.codec.socksx.v4

public Class DefaultSocks4CommandRequest

extends AbstractSocks4Message
implements Socks4CommandRequest
Class Inheritance
All Implemented Interfaces
io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest, io.netty.contrib.handler.codec.socksx.v4.Socks4Message, io.netty.contrib.handler.codec.socksx.SocksMessage, io.netty5.handler.codec.DecoderResultProvider
Imports
io.netty5.handler.codec.DecoderResult, io.netty5.util.internal.StringUtil, java.net.IDN

The default Socks4CommandRequest.

Field Summary

Modifier and TypeField and Description
private final String
private final int
private final Socks4CommandType
private final String

Constructor Summary

AccessConstructor and Description
public
DefaultSocks4CommandRequest(Socks4CommandType
the type of the request
type
,
String
the DSTIP field of the request
dstAddr
,
int
the DSTPORT field of the request
dstPort
)

Creates a new instance.

public
DefaultSocks4CommandRequest(Socks4CommandType
the type of the request
type
,
String
the DSTIP field of the request
dstAddr
,
int
the DSTPORT field of the request
dstPort
,
String
the USERID field of the request
userId
)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
public String
dstAddr()

Implements io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.dstAddr.

Returns the DSTIP field of this request.
public int
dstPort()

Implements io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.dstPort.

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

Overrides java.lang.Object.toString.

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

Implements io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.type.

Returns the type of this request.
public String
userId()

Implements io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.userId.

Returns the USERID field of this request.
Inherited from io.netty.contrib.handler.codec.socksx.v4.AbstractSocks4Message:
version

Field Detail

dstAddrback to summary
private final String dstAddr
dstPortback to summary
private final int dstPort
typeback to summary
private final Socks4CommandType type
userIdback to summary
private final String userId

Constructor Detail

DefaultSocks4CommandRequestback to summary
public DefaultSocks4CommandRequest(Socks4CommandType type, String dstAddr, int dstPort)

Creates a new instance.

Parameters
type:Socks4CommandType

the type of the request

dstAddr:String

the DSTIP field of the request

dstPort:int

the DSTPORT field of the request

DefaultSocks4CommandRequestback to summary
public DefaultSocks4CommandRequest(Socks4CommandType type, String dstAddr, int dstPort, String userId)

Creates a new instance.

Parameters
type:Socks4CommandType

the type of the request

dstAddr:String

the DSTIP field of the request

dstPort:int

the DSTPORT field of the request

userId:String

the USERID field of the request

Method Detail

dstAddrback to summary
public String dstAddr()

Implements io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.dstAddr.

Doc from io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.dstAddr.

Returns the DSTIP field of this request.

Annotations
@Override
dstPortback to summary
public int dstPort()

Implements io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.dstPort.

Doc from io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.dstPort.

Returns the DSTPORT 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 Socks4CommandType type()

Implements io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.type.

Doc from io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.type.

Returns the type of this request.

Annotations
@Override
userIdback to summary
public String userId()

Implements io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.userId.

Doc from io.netty.contrib.handler.codec.socksx.v4.Socks4CommandRequest.userId.

Returns the USERID field of this request.

Annotations
@Override