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

public Class DefaultSocks4CommandResponse

extends AbstractSocks4Message
implements Socks4CommandResponse
Class Inheritance
All Implemented Interfaces
io.netty.contrib.handler.codec.socksx.v4.Socks4CommandResponse, 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.NetUtil, io.netty5.util.internal.StringUtil

The default Socks4CommandResponse.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
DefaultSocks4CommandResponse(Socks4CommandStatus
the status of the response
status
)

Creates a new instance.

public
DefaultSocks4CommandResponse(Socks4CommandStatus
the status of the response
status
,
String
the DSTIP field of the response
dstAddr
,
int
the DSTPORT field of the response
dstPort
)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
public String
dstAddr()

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

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

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

Returns the DSTPORT field of this response.
public Socks4CommandStatus
status()

Implements io.netty.contrib.handler.codec.socksx.v4.Socks4CommandResponse.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.contrib.handler.codec.socksx.v4.AbstractSocks4Message:
version

Field Detail

dstAddrback to summary
private final String dstAddr
dstPortback to summary
private final int dstPort
statusback to summary
private final Socks4CommandStatus status

Constructor Detail

DefaultSocks4CommandResponseback to summary
public DefaultSocks4CommandResponse(Socks4CommandStatus status)

Creates a new instance.

Parameters
status:Socks4CommandStatus

the status of the response

DefaultSocks4CommandResponseback to summary
public DefaultSocks4CommandResponse(Socks4CommandStatus status, String dstAddr, int dstPort)

Creates a new instance.

Parameters
status:Socks4CommandStatus

the status of the response

dstAddr:String

the DSTIP field of the response

dstPort:int

the DSTPORT field of the response

Method Detail

dstAddrback to summary
public String dstAddr()

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

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

Returns the DSTIP field of this response.

Annotations
@Override
dstPortback to summary
public int dstPort()

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

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

Returns the DSTPORT field of this response.

Annotations
@Override
statusback to summary
public Socks4CommandStatus status()

Implements io.netty.contrib.handler.codec.socksx.v4.Socks4CommandResponse.status.

Doc from io.netty.contrib.handler.codec.socksx.v4.Socks4CommandResponse.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