Package org.hornetq.core.remoting.impl.netty

Examples of org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder


public class HornetQFrameDecoderTest extends TestCase{

    public void testDecoding() {
        final ChannelBuffer buffer = ChannelBuffers.copiedBuffer("TestBytes", CharsetUtil.US_ASCII);

        DecoderEmbedder<ChannelBuffer> decoder = new DecoderEmbedder<ChannelBuffer>(new HornetQFrameDecoder(new BufferDecoder() {

            public int isReadyToHandle(HornetQBuffer buffer) {
                if (buffer.readableBytes()  > 2) {
                    return 2;
                }
View Full Code Here


      if (StompProtocolManagerFactory.STOMP_WS_PROTOCOL_NAME.contentEquals(protocol))
      {
         handlers.put("http-decoder", new HttpRequestDecoder());
         handlers.put("http-aggregator", new HttpChunkAggregator(65536));
         handlers.put("http-encoder", new HttpResponseEncoder());
         handlers.put("hornetq-decoder", new HornetQFrameDecoder(decoder));
         handlers.put("websocket-handler", new WebSocketServerHandler());
      }
   }
View Full Code Here

TOP

Related Classes of org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.