@ChannelHandler.Sharable @StampyLibrary(libraryName="stampy-NETTY-client-server-RI") public class StompBasedFrameDecoder extends org.jboss.netty.handler.codec.frame.FrameDecoder
LineBasedFrameDecoder converted to be STOMP message aware.| Constructor and Description |
|---|
StompBasedFrameDecoder(int maxLength)
Creates a new decoder.
|
StompBasedFrameDecoder(int maxLength,
boolean failFast)
Creates a new decoder.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer) |
actualReadableBytes, afterAdd, afterRemove, appendToCumulation, beforeAdd, beforeRemove, channelClosed, channelDisconnected, cleanup, decodeLast, exceptionCaught, extractFrame, getMaxCumulationBufferCapacity, getMaxCumulationBufferComponents, internalBuffer, isUnfold, messageReceived, newCumulationBuffer, replace, setMaxCumulationBufferCapacity, setMaxCumulationBufferComponents, setUnfold, unfoldAndFireMessageReceived, updateCumulationpublic StompBasedFrameDecoder(int maxLength)
maxLength - the maximum length of the decoded frame. A
TooLongFrameException is thrown if the length of the frame
exceeds this value.public StompBasedFrameDecoder(int maxLength,
boolean failFast)
maxLength - the maximum length of the decoded frame. A
TooLongFrameException is thrown if the length of the frame
exceeds this value.failFast - If true, a TooLongFrameException is thrown as
soon as the decoder notices the length of the frame will exceed
maxFrameLength regardless of whether the entire frame has
been read. If false, a TooLongFrameException is
thrown after the entire frame that exceeds maxFrameLength
has been read.protected java.lang.Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer)
throws java.lang.Exception
decode in class org.jboss.netty.handler.codec.frame.FrameDecoderjava.lang.Exception