WebSocketFrame they will
just get forwarded to the next handler in the pipeline.
| Access | Constructor and Description |
|---|---|
| public | WebSocketFrameAggregator(int
If the size of the aggregated frame exceeds this value,
a maxContentLength)TooLongFrameException is thrown.Creates a new instance |
| Modifier and Type | Method and Description |
|---|---|
| protected WebSocketFrame | beginAggregation(WebSocketFrame start, ByteBuf content)
Implements abstract io. |
| protected boolean | closeAfterContinueResponse(Object
The return value from msg)newContinueResponse(Object, int, ChannelPipeline).Implements abstract io. newContinueResponse(Object, int, ChannelPipeline) is written.
|
| protected boolean | ignoreContentAfterContinueResponse(Object
The return value from msg)newContinueResponse(Object, int, ChannelPipeline).Implements abstract io. |
| protected boolean | isAggregated(WebSocketFrame msg)
Implements abstract io. true if and only if the specified message is already aggregated.
|
| protected boolean | isContentLengthInvalid(WebSocketFrame
The message which may indicate the content length. start, int The maximum allowed content length. maxContentLength)Implements abstract io. start's content length is known, and if it greater than
maxContentLength.
|
| protected boolean | isContentMessage(WebSocketFrame msg)
Implements abstract io. true if and only if the specified message is a content message.
|
| protected boolean | isLastContentMessage(ContinuationWebSocketFrame msg)
Implements abstract io. true if and only if the specified message is the last content message.
|
| protected boolean | isStartMessage(WebSocketFrame msg)
Implements abstract io. true if and only if the specified message is a start message.
|
| protected Object | newContinueResponse(WebSocketFrame start, int maxContentLength, ChannelPipeline pipeline)
Implements abstract io. |
| WebSocketFrameAggregator | back to summary |
|---|---|
| public WebSocketFrameAggregator(int maxContentLength) Creates a new instance
| |
| beginAggregation | back to summary |
|---|---|
| protected WebSocketFrame beginAggregation(WebSocketFrame start, ByteBuf content) throws Exception Implements abstract io. Doc from io. Creates a new aggregated message from the specified start message and the specified content. If the start
message implements
| |
| closeAfterContinueResponse | back to summary |
|---|---|
| protected boolean closeAfterContinueResponse(Object msg) throws Exception Implements abstract io. Doc from io. Determine if the channel should be closed after the result of
| |
| ignoreContentAfterContinueResponse | back to summary |
|---|---|
| protected boolean ignoreContentAfterContinueResponse(Object msg) throws Exception Implements abstract io. Doc from io. Determine if all objects for the current request/response should be ignored or not.
Messages will stop being ignored the next time
| |
| isAggregated | back to summary |
|---|---|
| protected boolean isAggregated(WebSocketFrame msg) throws Exception Implements abstract io. Doc from io. Returns
| |
| isContentLengthInvalid | back to summary |
|---|---|
| protected boolean isContentLengthInvalid(WebSocketFrame start, int maxContentLength) Implements abstract io. Doc from io. Determine if the message
| |
| isContentMessage | back to summary |
|---|---|
| protected boolean isContentMessage(WebSocketFrame msg) throws Exception Implements abstract io. Doc from io. Returns return msg instanceof MyContentMessage;
| |
| isLastContentMessage | back to summary |
|---|---|
| protected boolean isLastContentMessage(ContinuationWebSocketFrame msg) throws Exception Implements abstract io. Doc from io. Returns return msg instanceof MyLastContentMessage;or with instanceof and boolean field check:
return msg instanceof MyContentMessage && msg.isLastFragment();
| |
| isStartMessage | back to summary |
|---|---|
| protected boolean isStartMessage(WebSocketFrame msg) throws Exception Implements abstract io. Doc from io. Returns return msg instanceof MyStartMessage;
| |
| newContinueResponse | back to summary |
|---|---|
| protected Object newContinueResponse(WebSocketFrame start, int maxContentLength, ChannelPipeline pipeline) Implements abstract io. Doc from io. Returns the 'continue response' for the specified start message if necessary. For example, this method is useful to handle an HTTP 100-continue header. | |