Class SocksAuthResponse
- java.lang.Object
-
- org.jboss.netty.handler.codec.socks.SocksMessage
-
- org.jboss.netty.handler.codec.socks.SocksResponse
-
- org.jboss.netty.handler.codec.socks.SocksAuthResponse
-
public final class SocksAuthResponse extends SocksResponse
An socks auth response.- See Also:
SocksAuthRequest
,SocksAuthResponseDecoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.netty.handler.codec.socks.SocksResponse
SocksResponse.SocksResponseType
-
Nested classes/interfaces inherited from class org.jboss.netty.handler.codec.socks.SocksMessage
SocksMessage.AddressType, SocksMessage.AuthScheme, SocksMessage.AuthStatus, SocksMessage.CmdStatus, SocksMessage.CmdType, SocksMessage.MessageType, SocksMessage.ProtocolVersion, SocksMessage.SubnegotiationVersion
-
-
Field Summary
Fields Modifier and Type Field Description private SocksMessage.AuthStatus
authStatus
private static SocksMessage.SubnegotiationVersion
SUBNEGOTIATION_VERSION
-
Constructor Summary
Constructors Constructor Description SocksAuthResponse(SocksMessage.AuthStatus authStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encodeAsByteBuf(ChannelBuffer channelBuffer)
Encode socks message into its byte representation and write it into byteBufSocksMessage.AuthStatus
getAuthStatus()
Returns theSocksMessage.AuthStatus
of thisSocksAuthResponse
-
Methods inherited from class org.jboss.netty.handler.codec.socks.SocksResponse
getSocksResponseType
-
Methods inherited from class org.jboss.netty.handler.codec.socks.SocksMessage
getMessageType, getProtocolVersion
-
-
-
-
Field Detail
-
SUBNEGOTIATION_VERSION
private static final SocksMessage.SubnegotiationVersion SUBNEGOTIATION_VERSION
-
authStatus
private final SocksMessage.AuthStatus authStatus
-
-
Constructor Detail
-
SocksAuthResponse
public SocksAuthResponse(SocksMessage.AuthStatus authStatus)
-
-
Method Detail
-
getAuthStatus
public SocksMessage.AuthStatus getAuthStatus()
Returns theSocksMessage.AuthStatus
of thisSocksAuthResponse
-
encodeAsByteBuf
public void encodeAsByteBuf(ChannelBuffer channelBuffer)
Description copied from class:SocksMessage
Encode socks message into its byte representation and write it into byteBuf- Specified by:
encodeAsByteBuf
in classSocksMessage
- See Also:
ChannelBuffer
-
-