Package org.jboss.netty.handler.codec.http.websocketx

Examples of org.jboss.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler


      if (isHttp(magic1, magic2))
      {
        pipeline.addLast("decoder", new HttpRequestDecoder());
            pipeline.addLast("aggregator", new HttpChunkAggregator(65536));
            pipeline.addLast("encoder", new HttpResponseEncoder());
            pipeline.addLast("handler", new WebSocketServerProtocolHandler("/jetsocket"));
            pipeline.addLast(LOGIN_HANDLER_NAME, webSocketLoginHandler);
            isThisProtocol = true;
      }
      return isThisProtocol;
    }
View Full Code Here


        // Create a default pipeline implementation.
        ChannelPipeline pipeline = pipeline();
        pipeline.addLast("decoder", new HttpRequestDecoder());
        pipeline.addLast("aggregator", new HttpChunkAggregator(65536));
        pipeline.addLast("encoder", new HttpResponseEncoder());
        pipeline.addLast("handler", new WebSocketServerProtocolHandler("/websocket"));
        pipeline.addLast("testFramehandler", new CustomTextFrameHandler());
        return pipeline;
    }
View Full Code Here

TOP

Related Classes of org.jboss.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler

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.