public class FlinkHttpObjectAggregator
extends org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpObjectAggregator
HttpObjectDecoder
but
returns HTTP 413 to the client if the payload exceeds MessageAggregator.maxContentLength
.Constructor and Description |
---|
FlinkHttpObjectAggregator(int maxContentLength,
Map<String,String> responseHeaders) |
Modifier and Type | Method and 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) |
aggregate, beginAggregation, closeAfterContinueResponse, finishAggregation, handleOversizedMessage, ignoreContentAfterContinueResponse, isAggregated, isContentLengthInvalid, isContentMessage, isLastContentMessage, isStartMessage, newContinueResponse
acceptInboundMessage, channelInactive, channelReadComplete, ctx, handlerAdded, handlerRemoved, isHandlingOversizedMessage, maxContentLength, maxCumulationBufferComponents, setMaxCumulationBufferComponents
channelRead
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
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
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>
Exception
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.