public class HttpStreamDecoder
extends io.netty.handler.codec.http.HttpObjectAggregator
Constructor and Description |
---|
HttpStreamDecoder(int maxContentLength) |
Modifier and Type | Method and Description |
---|---|
protected io.netty.handler.codec.http.FullHttpMessage |
beginAggregation(io.netty.handler.codec.http.HttpMessage httpMessage,
io.netty.buffer.ByteBuf byteBuf) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
protected boolean |
closeAfterContinueResponse(Object o) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpObject msg,
List<Object> out) |
protected void |
finishAggregation(io.netty.handler.codec.http.FullHttpMessage aggregated) |
protected void |
handleOversizedMessage(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpMessage oversized) |
protected boolean |
ignoreContentAfterContinueResponse(Object o) |
protected Object |
newContinueResponse(io.netty.handler.codec.http.HttpMessage httpMessage,
int i,
io.netty.channel.ChannelPipeline pipeline) |
aggregate, isAggregated, isContentLengthInvalid, isContentMessage, isLastContentMessage, isStartMessage
acceptInboundMessage, channelInactive, ctx, handlerAdded, handlerRemoved, isHandlingOversizedMessage, maxContentLength, maxCumulationBufferComponents, setMaxCumulationBufferComponents
protected Object newContinueResponse(io.netty.handler.codec.http.HttpMessage httpMessage, int i, io.netty.channel.ChannelPipeline pipeline)
newContinueResponse
in class io.netty.handler.codec.http.HttpObjectAggregator
protected boolean closeAfterContinueResponse(Object o)
closeAfterContinueResponse
in class io.netty.handler.codec.http.HttpObjectAggregator
protected boolean ignoreContentAfterContinueResponse(Object o)
ignoreContentAfterContinueResponse
in class io.netty.handler.codec.http.HttpObjectAggregator
protected io.netty.handler.codec.http.FullHttpMessage beginAggregation(io.netty.handler.codec.http.HttpMessage httpMessage, io.netty.buffer.ByteBuf byteBuf) throws Exception
beginAggregation
in class io.netty.handler.codec.http.HttpObjectAggregator
Exception
protected void finishAggregation(io.netty.handler.codec.http.FullHttpMessage aggregated) throws Exception
finishAggregation
in class io.netty.handler.codec.http.HttpObjectAggregator
Exception
protected void handleOversizedMessage(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpMessage oversized) throws Exception
handleOversizedMessage
in class io.netty.handler.codec.http.HttpObjectAggregator
Exception
protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpObject msg, List<Object> out) throws Exception
decode
in class io.netty.handler.codec.MessageAggregator<io.netty.handler.codec.http.HttpObject,io.netty.handler.codec.http.HttpMessage,io.netty.handler.codec.http.HttpContent,io.netty.handler.codec.http.FullHttpMessage>
Exception
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.handler.codec.MessageToMessageDecoder<io.netty.handler.codec.http.HttpObject>
Exception
Copyright © 2016. All Rights Reserved.