@ChannelHandler.Sharable
public class StompWebSocketProtocolCodec
extends io.netty.handler.codec.MessageToMessageCodec<io.netty.handler.codec.http.websocketx.WebSocketFrame,io.netty.handler.codec.stomp.StompSubframe>
| Constructor and Description |
|---|
StompWebSocketProtocolCodec() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.websocketx.WebSocketFrame webSocketFrame,
List<Object> out) |
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.stomp.StompSubframe stompFrame,
List<Object> out) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
acceptInboundMessage, acceptOutboundMessage, channelRead, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected void encode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.stomp.StompSubframe stompFrame,
List<Object> out)
throws Exception
encode in class io.netty.handler.codec.MessageToMessageCodec<io.netty.handler.codec.http.websocketx.WebSocketFrame,io.netty.handler.codec.stomp.StompSubframe>Exceptionprotected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.websocketx.WebSocketFrame webSocketFrame,
List<Object> out)
decode in class io.netty.handler.codec.MessageToMessageCodec<io.netty.handler.codec.http.websocketx.WebSocketFrame,io.netty.handler.codec.stomp.StompSubframe>Copyright © 2008–2023 The Netty Project. All rights reserved.