Package io.netty.handler.codec.stomp
Class StompSubframeEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageEncoder<StompSubframe>
-
- io.netty.handler.codec.stomp.StompSubframeEncoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelOutboundHandler
public class StompSubframeEncoder extends io.netty.handler.codec.MessageToMessageEncoder<StompSubframe>
-
-
Constructor Summary
Constructors Constructor Description StompSubframeEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectconvertContentSubFrame(StompContentSubframe original, io.netty.buffer.ByteBuf encoded)An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompHeadersSubframecontent sub frame.protected ObjectconvertFullFrame(StompFrame original, io.netty.buffer.ByteBuf encoded)An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompFramefull frame.protected ObjectconvertHeadersSubFrame(StompHeadersSubframe original, io.netty.buffer.ByteBuf encoded)An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompHeadersSubframeheaders sub frame.protected voidencode(io.netty.channel.ChannelHandlerContext ctx, StompSubframe msg, List<Object> out)protected intheadersSubFrameSize(StompHeadersSubframe headersSubframe)Returns a heuristic size for headers (32 bytes per header line) + (2 bytes for colon and eol) + (additional command buffer).-
Methods inherited from class io.netty.handler.codec.MessageToMessageEncoder
acceptOutboundMessage, write
-
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
encode
protected void encode(io.netty.channel.ChannelHandlerContext ctx, StompSubframe msg, List<Object> out) throws Exception- Specified by:
encodein classio.netty.handler.codec.MessageToMessageEncoder<StompSubframe>- Throws:
Exception
-
convertFullFrame
protected Object convertFullFrame(StompFrame original, io.netty.buffer.ByteBuf encoded)
An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompFramefull frame.By default an encoded buffer is returned as is.
-
convertHeadersSubFrame
protected Object convertHeadersSubFrame(StompHeadersSubframe original, io.netty.buffer.ByteBuf encoded)
An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompHeadersSubframeheaders sub frame.By default an encoded buffer is returned as is.
-
convertContentSubFrame
protected Object convertContentSubFrame(StompContentSubframe original, io.netty.buffer.ByteBuf encoded)
An extension method to convert a STOMP encoded buffer to a different message type based on an originalStompHeadersSubframecontent sub frame.By default an encoded buffer is returned as is.
-
headersSubFrameSize
protected int headersSubFrameSize(StompHeadersSubframe headersSubframe)
Returns a heuristic size for headers (32 bytes per header line) + (2 bytes for colon and eol) + (additional command buffer).
-
-