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.ObjectAn abstract class that defines a SocksMessage, providing common properties forSocksRequestandSocksResponse.- See Also:
SocksRequest,SocksResponse
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSocksMessage(SocksMessageType type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract voidencodeAsByteBuf(ByteBuf byteBuf)Deprecated.Do not use; this method was intended for an internal use only.SocksProtocolVersionprotocolVersion()Returns theSocksProtocolVersionof thisSocksMessageSocksMessageTypetype()Returns theSocksMessageTypeof thisSocksMessage
-
-
-
Constructor Detail
-
SocksMessage
protected SocksMessage(SocksMessageType type)
-
-
Method Detail
-
type
public SocksMessageType type()
Returns theSocksMessageTypeof thisSocksMessage- Returns:
- The
SocksMessageTypeof thisSocksMessage
-
protocolVersion
public SocksProtocolVersion protocolVersion()
Returns theSocksProtocolVersionof thisSocksMessage- Returns:
- The
SocksProtocolVersionof thisSocksMessage
-
encodeAsByteBuf
@Deprecated public abstract void encodeAsByteBuf(ByteBuf byteBuf)
Deprecated.Do not use; this method was intended for an internal use only.
-
-