Liferay 7.0-ce-b4

com.liferay.portal.fabric.netty.codec.serialization
Class AnnotatedObjectDecoder

java.lang.Object
  extended by io.netty.channel.ChannelHandlerAdapter
      extended by io.netty.channel.ChannelInboundHandlerAdapter
          extended by io.netty.handler.codec.ByteToMessageDecoder
              extended by io.netty.handler.codec.LengthFieldBasedFrameDecoder
                  extended by com.liferay.portal.fabric.netty.codec.serialization.AnnotatedObjectDecoder
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class AnnotatedObjectDecoder
extends io.netty.handler.codec.LengthFieldBasedFrameDecoder


Nested Class Summary
 
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
 
Field Summary
static String NAME
           
 
Constructor Summary
AnnotatedObjectDecoder()
           
 
Method Summary
 void addFirst(ObjectDecodeChannelInboundHandler<?>... objectDecodeChannelInboundHandlers)
           
 void addFirst(String name, ObjectDecodeChannelInboundHandler<?> objectDecodeChannelInboundHandler)
           
 void addLast(ObjectDecodeChannelInboundHandler<?>... objectDecodeChannelInboundHandlers)
           
 void addLast(String name, ObjectDecodeChannelInboundHandler<?> objectDecodeChannelInboundHandler)
           
protected  Object decode(io.netty.channel.ChannelHandlerContext channelHandlerContext, io.netty.buffer.ByteBuf byteBuf)
           
protected  io.netty.buffer.ByteBuf extractFrame(io.netty.channel.ChannelHandlerContext channelHandlerContext, io.netty.buffer.ByteBuf byteBuf, int index, int length)
           
<T extends ObjectDecodeChannelInboundHandler<?>>
T
remove(Class<T> handlerType)
           
 void remove(ObjectDecodeChannelInboundHandler<?> objectDecodeChannelInboundHandler)
           
 ObjectDecodeChannelInboundHandler<?> remove(String name)
           
 ObjectDecodeChannelInboundHandler<?> removeFirst()
           
 ObjectDecodeChannelInboundHandler<?> removeLast()
           
 
Methods inherited from class io.netty.handler.codec.LengthFieldBasedFrameDecoder
decode, getUnadjustedFrameLength
 
Methods inherited from class io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setSingleDecode
 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
 
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
handlerAdded, isSharable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded
 

Field Detail

NAME

public static final String NAME
Constructor Detail

AnnotatedObjectDecoder

public AnnotatedObjectDecoder()
Method Detail

addFirst

public void addFirst(ObjectDecodeChannelInboundHandler<?>... objectDecodeChannelInboundHandlers)

addFirst

public void addFirst(String name,
                     ObjectDecodeChannelInboundHandler<?> objectDecodeChannelInboundHandler)

addLast

public void addLast(ObjectDecodeChannelInboundHandler<?>... objectDecodeChannelInboundHandlers)

addLast

public void addLast(String name,
                    ObjectDecodeChannelInboundHandler<?> objectDecodeChannelInboundHandler)

remove

public <T extends ObjectDecodeChannelInboundHandler<?>> T remove(Class<T> handlerType)

remove

public void remove(ObjectDecodeChannelInboundHandler<?> objectDecodeChannelInboundHandler)

remove

public ObjectDecodeChannelInboundHandler<?> remove(String name)

removeFirst

public ObjectDecodeChannelInboundHandler<?> removeFirst()

removeLast

public ObjectDecodeChannelInboundHandler<?> removeLast()

decode

protected Object decode(io.netty.channel.ChannelHandlerContext channelHandlerContext,
                        io.netty.buffer.ByteBuf byteBuf)
                 throws Exception
Overrides:
decode in class io.netty.handler.codec.LengthFieldBasedFrameDecoder
Throws:
Exception

extractFrame

protected io.netty.buffer.ByteBuf extractFrame(io.netty.channel.ChannelHandlerContext channelHandlerContext,
                                               io.netty.buffer.ByteBuf byteBuf,
                                               int index,
                                               int length)
Overrides:
extractFrame in class io.netty.handler.codec.LengthFieldBasedFrameDecoder

Liferay 7.0-ce-b4