public class WebSocketFrameAggregator extends io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>
WebSocketFrame they will
just get forwarded to the next handler in the pipeline.| Constructor and Description |
|---|
WebSocketFrameAggregator(int maxContentLength)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected WebSocketFrame |
beginAggregation(WebSocketFrame start,
io.netty.buffer.ByteBuf content) |
protected boolean |
closeAfterContinueResponse(Object msg) |
protected boolean |
ignoreContentAfterContinueResponse(Object msg) |
protected boolean |
isAggregated(WebSocketFrame msg) |
protected boolean |
isContentLengthInvalid(WebSocketFrame start,
int maxContentLength) |
protected boolean |
isContentMessage(WebSocketFrame msg) |
protected boolean |
isLastContentMessage(ContinuationWebSocketFrame msg) |
protected boolean |
isStartMessage(WebSocketFrame msg) |
protected Object |
newContinueResponse(WebSocketFrame start,
int maxContentLength,
io.netty.channel.ChannelPipeline pipeline) |
acceptInboundMessage, aggregate, channelInactive, ctx, decode, finishAggregation, handleOversizedMessage, handlerAdded, handlerRemoved, isHandlingOversizedMessage, maxContentLength, maxCumulationBufferComponents, setMaxCumulationBufferComponentspublic WebSocketFrameAggregator(int maxContentLength)
maxContentLength - If the size of the aggregated frame exceeds this value,
a TooLongFrameException is thrown.protected boolean isStartMessage(WebSocketFrame msg) throws Exception
isStartMessage in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>Exceptionprotected boolean isContentMessage(WebSocketFrame msg) throws Exception
isContentMessage in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>Exceptionprotected boolean isLastContentMessage(ContinuationWebSocketFrame msg) throws Exception
isLastContentMessage in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>Exceptionprotected boolean isAggregated(WebSocketFrame msg) throws Exception
isAggregated in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>Exceptionprotected boolean isContentLengthInvalid(WebSocketFrame start, int maxContentLength)
isContentLengthInvalid in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>protected Object newContinueResponse(WebSocketFrame start, int maxContentLength, io.netty.channel.ChannelPipeline pipeline)
newContinueResponse in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>protected boolean closeAfterContinueResponse(Object msg) throws Exception
closeAfterContinueResponse in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>Exceptionprotected boolean ignoreContentAfterContinueResponse(Object msg) throws Exception
ignoreContentAfterContinueResponse in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>Exceptionprotected WebSocketFrame beginAggregation(WebSocketFrame start, io.netty.buffer.ByteBuf content) throws Exception
beginAggregation in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>ExceptionCopyright © 2008–2017 The Netty Project. All rights reserved.