Class BinaryAuthDecoderImpl
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
org.infinispan.server.memcached.MemcachedBaseDecoder
org.infinispan.server.memcached.binary.BinaryAuthDecoderImpl
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class io.netty.handler.codec.ByteToMessageDecoder
io.netty.handler.codec.ByteToMessageDecoder.Cumulator
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Fields inherited from class org.infinispan.server.memcached.MemcachedBaseDecoder
accessLogging, ANONYMOUS, cache, ctx, current, log, principalName, requestStart, server, statistics, statsEnabled, subject, timeService, versionGenerator
Fields inherited from class io.netty.handler.codec.ByteToMessageDecoder
COMPOSITE_CUMULATOR, MERGE_CUMULATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MemcachedResponse
config
(BinaryHeader header, byte[] key) void
protected MemcachedResponse
failedResponse
(Header header, Throwable t) void
handlerAdded
(io.netty.channel.ChannelHandlerContext ctx) int
protected void
response
(BinaryHeader header, MemcachedStatus status) protected void
response
(BinaryHeader header, MemcachedStatus status, byte[] value) protected void
response
(BinaryHeader header, MemcachedStatus status, byte[] key, byte[] value) protected void
response
(BinaryHeader header, MemcachedStatus status, int flags, byte[] key, byte[] value) protected void
response
(BinaryHeader header, MemcachedStatus status, long number) protected void
response
(BinaryHeader header, MemcachedStatus status, Throwable t) protected MemcachedResponse
saslAuth
(BinaryHeader header, byte[] mech, byte[] data) protected MemcachedResponse
saslListMechs
(BinaryHeader header) protected MemcachedResponse
saslStep
(BinaryHeader header, byte[] mech, byte[] data) send
(Header header, CompletionStage<?> response) send
(Header header, CompletionStage<?> response, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) Methods inherited from class org.infinispan.server.memcached.MemcachedBaseDecoder
exceptionCaught, metadata, registerExceptionHandler, resumeRead, statsMap, toMillis, touchMetadata
Methods inherited from class io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
BinaryAuthDecoderImpl
-
-
Method Details
-
decode
public void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf, List<Object> out) throws Exception - Specified by:
decode
in classio.netty.handler.codec.ByteToMessageDecoder
- Throws:
Exception
-
requestBytes
public int requestBytes() -
saslListMechs
-
saslAuth
-
saslStep
-
acquireHeader
-
handlerAdded
- Specified by:
handlerAdded
in interfaceio.netty.channel.ChannelHandler
- Overrides:
handlerAdded
in classMemcachedBaseDecoder
- Throws:
Exception
-
config
-
response
-
response
-
response
-
response
protected void response(BinaryHeader header, MemcachedStatus status, int flags, byte[] key, byte[] value) -
response
-
response
-
failedResponse
- Specified by:
failedResponse
in classMemcachedBaseDecoder
-
send
- Specified by:
send
in classMemcachedBaseDecoder
-
send
public MemcachedResponse send(Header header, CompletionStage<?> response, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) - Specified by:
send
in classMemcachedBaseDecoder
-