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, channelReadComplete, ctx, decode, finishAggregation, handleOversizedMessage, handlerAdded, handlerRemoved, isHandlingOversizedMessage, maxContentLength, maxCumulationBufferComponents, setMaxCumulationBufferComponents
public 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>
Exception
protected boolean isContentMessage(WebSocketFrame msg) throws Exception
isContentMessage
in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>
Exception
protected boolean isLastContentMessage(ContinuationWebSocketFrame msg) throws Exception
isLastContentMessage
in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>
Exception
protected boolean isAggregated(WebSocketFrame msg) throws Exception
isAggregated
in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>
Exception
protected 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>
Exception
protected boolean ignoreContentAfterContinueResponse(Object msg) throws Exception
ignoreContentAfterContinueResponse
in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>
Exception
protected WebSocketFrame beginAggregation(WebSocketFrame start, io.netty.buffer.ByteBuf content) throws Exception
beginAggregation
in class io.netty.handler.codec.MessageAggregator<WebSocketFrame,WebSocketFrame,ContinuationWebSocketFrame,WebSocketFrame>
Exception
Copyright © 2008–2023 The Netty Project. All rights reserved.