Package io.netty.handler.codec.socks
Class SocksMessage
- java.lang.Object
-
- io.netty.handler.codec.socks.SocksMessage
-
- Direct Known Subclasses:
SocksRequest
,SocksResponse
public abstract class SocksMessage extends java.lang.Object
An abstract class that defines a SocksMessage, providing common properties forSocksRequest
andSocksResponse
.- See Also:
SocksRequest
,SocksResponse
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SocksMessage(SocksMessageType type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract void
encodeAsByteBuf(ByteBuf byteBuf)
Deprecated.Do not use; this method was intended for an internal use only.SocksProtocolVersion
protocolVersion()
Returns theSocksProtocolVersion
of thisSocksMessage
SocksMessageType
type()
Returns theSocksMessageType
of thisSocksMessage
-
-
-
Constructor Detail
-
SocksMessage
protected SocksMessage(SocksMessageType type)
-
-
Method Detail
-
type
public SocksMessageType type()
Returns theSocksMessageType
of thisSocksMessage
- Returns:
- The
SocksMessageType
of thisSocksMessage
-
protocolVersion
public SocksProtocolVersion protocolVersion()
Returns theSocksProtocolVersion
of thisSocksMessage
- Returns:
- The
SocksProtocolVersion
of thisSocksMessage
-
encodeAsByteBuf
@Deprecated public abstract void encodeAsByteBuf(ByteBuf byteBuf)
Deprecated.Do not use; this method was intended for an internal use only.
-
-