Class WsAndHttpChannelizerHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    @Sharable
    public class WsAndHttpChannelizerHandler
    extends io.netty.channel.ChannelInboundHandlerAdapter
    A ChannelInboundHandlerAdapter for use with WsAndHttpChannelizer that toggles between WebSockets and http.
    Author:
    Keith Lohnes lohnesk@gmail.com
    • Constructor Detail

      • WsAndHttpChannelizerHandler

        public WsAndHttpChannelizerHandler()
    • Method Detail

      • getWsChannelizer

        public Channelizer getWsChannelizer()
      • configure

        public void configure​(io.netty.channel.ChannelPipeline pipeline)
      • channelRead

        public void channelRead​(io.netty.channel.ChannelHandlerContext ctx,
                                Object obj)
        Specified by:
        channelRead in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
      • exceptionCaught

        public void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx,
                                    Throwable cause)
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelHandler
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter