Class FlinkHttpObjectAggregator

  • All Implemented Interfaces:
    org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandler, org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler

    public class FlinkHttpObjectAggregator
    extends org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObjectAggregator
    Same as HttpObjectDecoder but returns HTTP 413 to the client if the payload exceeds MessageAggregator.maxContentLength.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandler

        org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandler.Sharable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void decode​(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx, org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject msg, List<Object> out)  
      • Methods inherited from class org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObjectAggregator

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

        acceptInboundMessage, channelInactive, channelReadComplete, ctx, handlerAdded, handlerRemoved, isHandlingOversizedMessage, maxContentLength, maxCumulationBufferComponents, setMaxCumulationBufferComponents
      • Methods inherited from class org.apache.flink.shaded.netty4.io.netty.handler.codec.MessageToMessageDecoder

        channelRead
      • Methods inherited from class org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
      • Methods inherited from class org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, isSharable
    • Constructor Detail

      • FlinkHttpObjectAggregator

        public FlinkHttpObjectAggregator​(int maxContentLength,
                                         @Nonnull
                                         Map<String,​String> responseHeaders)
    • Method Detail

      • decode

        protected void decode​(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx,
                              org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject msg,
                              List<Object> out)
                       throws Exception
        Overrides:
        decode in class org.apache.flink.shaded.netty4.io.netty.handler.codec.MessageAggregator<org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObject,​org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpMessage,​org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpContent,​org.apache.flink.shaded.netty4.io.netty.handler.codec.http.FullHttpMessage>
        Throws:
        Exception