@ChannelHandler.Sharable public class StompWebSocketProtocolCodec extends MessageToMessageCodec<WebSocketFrame,StompSubframe>
ChannelHandler.Sharable| 构造器和说明 |
|---|
StompWebSocketProtocolCodec() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
decode(ChannelHandlerContext ctx,
WebSocketFrame webSocketFrame,
java.util.List<java.lang.Object> out) |
protected void |
encode(ChannelHandlerContext ctx,
StompSubframe stompFrame,
java.util.List<java.lang.Object> out) |
void |
userEventTriggered(ChannelHandlerContext ctx,
java.lang.Object evt)
Calls
ChannelHandlerContext.fireUserEventTriggered(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline. |
acceptInboundMessage, acceptOutboundMessage, channelRead, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedpublic void userEventTriggered(ChannelHandlerContext ctx, java.lang.Object evt) throws java.lang.Exception
ChannelInboundHandlerAdapterChannelHandlerContext.fireUserEventTriggered(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.userEventTriggered 在接口中 ChannelInboundHandleruserEventTriggered 在类中 ChannelInboundHandlerAdapterjava.lang.Exceptionprotected void encode(ChannelHandlerContext ctx, StompSubframe stompFrame, java.util.List<java.lang.Object> out) throws java.lang.Exception
encode 在类中 MessageToMessageCodec<WebSocketFrame,StompSubframe>java.lang.ExceptionMessageToMessageEncoder.encode(ChannelHandlerContext, Object, List)protected void decode(ChannelHandlerContext ctx, WebSocketFrame webSocketFrame, java.util.List<java.lang.Object> out)