Class HttpRequestContextHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<HttpRequestContext>
-
- com.github.fmjsjx.libnetty.http.server.HttpRequestContextHandler
-
- All Implemented Interfaces:
HttpServerHandler,io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public abstract class HttpRequestContextHandler extends io.netty.channel.SimpleChannelInboundHandler<HttpRequestContext> implements HttpServerHandler
An abstract handler to handleHttpRequestContextmessages.- Since:
- 1.1
-
-
Field Summary
-
Fields inherited from interface com.github.fmjsjx.libnetty.http.server.HttpServerHandler
READ_NEXT
-
-
Constructor Summary
Constructors Constructor Description HttpRequestContextHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, HttpRequestContext msg)protected abstract voidmessageReceived(io.netty.channel.ChannelHandlerContext ctx, HttpRequestContext msg)-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelInboundHandler
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from interface com.github.fmjsjx.libnetty.http.server.HttpServerHandler
isSharable
-
-
-
-
Method Detail
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, HttpRequestContext msg) throws java.lang.Exception- Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<HttpRequestContext>- Throws:
java.lang.Exception
-
messageReceived
protected abstract void messageReceived(io.netty.channel.ChannelHandlerContext ctx, HttpRequestContext msg) throws java.lang.Exception- Throws:
java.lang.Exception
-
-