Class AnalogwebChannelInboundHandler

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

    public class AnalogwebChannelInboundHandler
    extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
    Author:
    y2k2mt
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Constructor Summary

      Constructors 
      Constructor Description
      AnalogwebChannelInboundHandler​(org.analogweb.Application application, org.analogweb.ApplicationProperties properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void channelRead0​(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest msg)  
      void channelReadComplete​(io.netty.channel.ChannelHandlerContext ctx)  
      protected org.analogweb.RequestContext createRequestContext​(io.netty.handler.codec.http.FullHttpRequest req)  
      protected org.analogweb.ResponseContext createResponseContext​(io.netty.handler.codec.http.FullHttpRequest req, io.netty.channel.ChannelHandlerContext ctx)  
      void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)  
      protected org.analogweb.Application getApplication()  
      protected org.analogweb.ApplicationProperties getApplicationProperties()  
      protected org.analogweb.RequestPath resolveRequestPath​(io.netty.handler.codec.http.FullHttpRequest req)  
      • Methods inherited from class io.netty.channel.SimpleChannelInboundHandler

        acceptInboundMessage, channelRead
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from interface io.netty.channel.ChannelHandler

        handlerAdded, handlerRemoved
    • Constructor Detail

      • AnalogwebChannelInboundHandler

        public AnalogwebChannelInboundHandler​(org.analogweb.Application application,
                                              org.analogweb.ApplicationProperties properties)
    • Method Detail

      • channelRead0

        public void channelRead0​(io.netty.channel.ChannelHandlerContext ctx,
                                 io.netty.handler.codec.http.FullHttpRequest msg)
                          throws Exception
        Specified by:
        channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
        Throws:
        Exception
      • channelReadComplete

        public void channelReadComplete​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        channelReadComplete in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapter
      • createResponseContext

        protected org.analogweb.ResponseContext createResponseContext​(io.netty.handler.codec.http.FullHttpRequest req,
                                                                      io.netty.channel.ChannelHandlerContext ctx)
      • createRequestContext

        protected org.analogweb.RequestContext createRequestContext​(io.netty.handler.codec.http.FullHttpRequest req)
      • getApplication

        protected org.analogweb.Application getApplication()
      • getApplicationProperties

        protected org.analogweb.ApplicationProperties getApplicationProperties()
      • resolveRequestPath

        protected org.analogweb.RequestPath resolveRequestPath​(io.netty.handler.codec.http.FullHttpRequest req)
      • 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