Package org.apache.flink.runtime.rest
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
ConstructorsConstructorDescriptionFlinkHttpObjectAggregator(int maxContentLength, Map<String, String> responseHeaders) -
Method Summary
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, newContinueResponseMethods inherited from class org.apache.flink.shaded.netty4.io.netty.handler.codec.MessageAggregator
acceptInboundMessage, channelInactive, channelReadComplete, ctx, handlerAdded, handlerRemoved, isHandlingOversizedMessage, maxContentLength, maxCumulationBufferComponents, setMaxCumulationBufferComponentsMethods inherited from class org.apache.flink.shaded.netty4.io.netty.handler.codec.MessageToMessageDecoder
channelReadMethods inherited from class org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
FlinkHttpObjectAggregator
-
-
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:
decodein classorg.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
-