Class MetadataAggregator

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public class MetadataAggregator
    extends io.netty.handler.codec.http.HttpObjectAggregator
    MetadataAggregator is a custom HttpObjectAggregator that only aggregated HttpResponse messages for metadata.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Constructor Summary

      Constructors 
      Constructor Description
      MetadataAggregator​(int maxContentLength)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean acceptInboundMessage​(java.lang.Object msg)  
      • Methods inherited from class io.netty.handler.codec.http.HttpObjectAggregator

        aggregate, beginAggregation, closeAfterContinueResponse, finishAggregation, handleOversizedMessage, ignoreContentAfterContinueResponse, isAggregated, isContentLengthInvalid, isContentMessage, isLastContentMessage, isStartMessage, newContinueResponse
      • Methods inherited from class io.netty.handler.codec.MessageAggregator

        channelInactive, channelReadComplete, ctx, decode, handlerAdded, handlerRemoved, isHandlingOversizedMessage, maxContentLength, maxCumulationBufferComponents, setMaxCumulationBufferComponents
      • Methods inherited from class io.netty.handler.codec.MessageToMessageDecoder

        channelRead
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, isSharable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetadataAggregator

        public MetadataAggregator​(int maxContentLength)
    • Method Detail

      • acceptInboundMessage

        public boolean acceptInboundMessage​(java.lang.Object msg)
                                     throws java.lang.Exception
        Overrides:
        acceptInboundMessage in class io.netty.handler.codec.MessageAggregator<io.netty.handler.codec.http.HttpObject,​io.netty.handler.codec.http.HttpMessage,​io.netty.handler.codec.http.HttpContent,​io.netty.handler.codec.http.FullHttpMessage>
        Throws:
        java.lang.Exception