Class FlinkHttpObjectAggregator

java.lang.Object
org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerAdapter
org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
org.apache.flink.shaded.netty4.io.netty.handler.codec.MessageToMessageDecoder<I>
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>
org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObjectAggregator
org.apache.flink.runtime.rest.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
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlinkHttpObjectAggregator(int maxContentLength, Map<String,String> responseHeaders)
     
  • Method Summary

    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

    Methods inherited from class java.lang.Object

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

    • FlinkHttpObjectAggregator

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

    • 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