Package org.drasyl.handler.stream
Class ChunkedMessageAggregator
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.MessageToMessageDecoder<I>
io.netty.handler.codec.MessageAggregator<MessageChunk,MessageChunk,MessageChunk,ReassembledMessage>
org.drasyl.handler.stream.ChunkedMessageAggregator
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Deprecated
public class ChunkedMessageAggregator
extends io.netty.handler.codec.MessageAggregator<MessageChunk,MessageChunk,MessageChunk,ReassembledMessage>
Deprecated.
Aggregates
MessageChunk
s to a ReassembledMessage
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Constructor Summary
ConstructorDescriptionChunkedMessageAggregator
(int maxContentLength) Deprecated.Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected ReassembledMessage
beginAggregation
(MessageChunk start, io.netty.buffer.ByteBuf content) Deprecated.protected boolean
Deprecated.protected boolean
Deprecated.protected boolean
isAggregated
(MessageChunk msg) Deprecated.protected boolean
isContentLengthInvalid
(MessageChunk start, int maxContentLength) Deprecated.protected boolean
Deprecated.protected boolean
Deprecated.protected boolean
Deprecated.protected Object
newContinueResponse
(MessageChunk start, int maxContentLength, io.netty.channel.ChannelPipeline pipeline) Deprecated.Methods inherited from class io.netty.handler.codec.MessageAggregator
acceptInboundMessage, aggregate, channelInactive, channelReadComplete, ctx, decode, finishAggregation, handleOversizedMessage, handlerAdded, handlerRemoved, isHandlingOversizedMessage, maxContentLength, maxCumulationBufferComponents, setMaxCumulationBufferComponents
Methods inherited from class io.netty.handler.codec.MessageToMessageDecoder
channelRead
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
ChunkedMessageAggregator
public ChunkedMessageAggregator(int maxContentLength) Deprecated.Creates a new instance.- Parameters:
maxContentLength
- the maximum length of the aggregated message. If the length of the aggregated content exceeds this value,#handleOversizedMessage(ChannelHandlerContext, MessageChunk)
will be called.
-
-
Method Details
-
isStartMessage
Deprecated.- Specified by:
isStartMessage
in classio.netty.handler.codec.MessageAggregator<MessageChunk,
MessageChunk, MessageChunk, ReassembledMessage>
-
isContentMessage
Deprecated.- Specified by:
isContentMessage
in classio.netty.handler.codec.MessageAggregator<MessageChunk,
MessageChunk, MessageChunk, ReassembledMessage>
-
isLastContentMessage
Deprecated.- Specified by:
isLastContentMessage
in classio.netty.handler.codec.MessageAggregator<MessageChunk,
MessageChunk, MessageChunk, ReassembledMessage>
-
isAggregated
Deprecated.- Specified by:
isAggregated
in classio.netty.handler.codec.MessageAggregator<MessageChunk,
MessageChunk, MessageChunk, ReassembledMessage>
-
isContentLengthInvalid
Deprecated.- Specified by:
isContentLengthInvalid
in classio.netty.handler.codec.MessageAggregator<MessageChunk,
MessageChunk, MessageChunk, ReassembledMessage>
-
newContinueResponse
protected Object newContinueResponse(MessageChunk start, int maxContentLength, io.netty.channel.ChannelPipeline pipeline) Deprecated.- Specified by:
newContinueResponse
in classio.netty.handler.codec.MessageAggregator<MessageChunk,
MessageChunk, MessageChunk, ReassembledMessage>
-
closeAfterContinueResponse
Deprecated.- Specified by:
closeAfterContinueResponse
in classio.netty.handler.codec.MessageAggregator<MessageChunk,
MessageChunk, MessageChunk, ReassembledMessage>
-
ignoreContentAfterContinueResponse
Deprecated.- Specified by:
ignoreContentAfterContinueResponse
in classio.netty.handler.codec.MessageAggregator<MessageChunk,
MessageChunk, MessageChunk, ReassembledMessage>
-
beginAggregation
Deprecated.- Specified by:
beginAggregation
in classio.netty.handler.codec.MessageAggregator<MessageChunk,
MessageChunk, MessageChunk, ReassembledMessage>
-