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.HttpObjectAggregatorSame asHttpObjectDecoderbut returns HTTP 413 to the client if the payload exceedsMessageAggregator.maxContentLength.
-
-
Constructor Summary
Constructors Constructor Description FlinkHttpObjectAggregator(int maxContentLength, Map<String,String> responseHeaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddecode(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
-
-
-
-
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:
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
-
-