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 voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.FullHttpRequest msg)voidchannelReadComplete(io.netty.channel.ChannelHandlerContext ctx)protected org.analogweb.RequestContextcreateRequestContext(io.netty.handler.codec.http.FullHttpRequest req)protected org.analogweb.ResponseContextcreateResponseContext(io.netty.handler.codec.http.FullHttpRequest req, io.netty.channel.ChannelHandlerContext ctx)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)protected org.analogweb.ApplicationgetApplication()protected org.analogweb.ApplicationPropertiesgetApplicationProperties()protected org.analogweb.RequestPathresolveRequestPath(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:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>- Throws:
Exception
-
channelReadComplete
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
- Specified by:
channelReadCompletein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadCompletein 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:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
-