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.AuthStatusauthStatusprivate static SocksMessage.SubnegotiationVersionSUBNEGOTIATION_VERSION
-
Constructor Summary
Constructors Constructor Description SocksAuthResponse(SocksMessage.AuthStatus authStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencodeAsByteBuf(ChannelBuffer channelBuffer)Encode socks message into its byte representation and write it into byteBufSocksMessage.AuthStatusgetAuthStatus()Returns theSocksMessage.AuthStatusof 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.AuthStatusof thisSocksAuthResponse
-
encodeAsByteBuf
public void encodeAsByteBuf(ChannelBuffer channelBuffer)
Description copied from class:SocksMessageEncode socks message into its byte representation and write it into byteBuf- Specified by:
encodeAsByteBufin classSocksMessage- See Also:
ChannelBuffer
-
-