Package org.analogweb.netty
Class AnalogwebChannelInboundHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
-
- org.analogweb.netty.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
-
-
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
-
-
-
-
Method Detail
-
channelRead0
public void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest msg) throws Exception
- Specified by:
channelRead0
in classio.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
- Throws:
Exception
-
channelReadComplete
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
channelReadComplete
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelReadComplete
in classio.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 interfaceio.netty.channel.ChannelHandler
- Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
exceptionCaught
in classio.netty.channel.ChannelInboundHandlerAdapter
-
-