public abstract class HttpPreProcessor extends io.netty.channel.SimpleChannelInboundHandler<HttpRequest>
| Constructor and Description |
|---|
HttpPreProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
HttpRequest msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
abstract Object |
process(HttpRequest msg) |
protected void |
sendResponse(io.netty.channel.ChannelHandlerContext ctx,
HttpRequest req,
io.netty.handler.codec.http.HttpResponseStatus status,
Object data) |
protected void |
sendResponse(io.netty.channel.ChannelHandlerContext ctx,
HttpRequest req,
Object data) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterprotected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
HttpRequest msg)
throws Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<HttpRequest>Exceptionprotected void sendResponse(io.netty.channel.ChannelHandlerContext ctx,
HttpRequest req,
io.netty.handler.codec.http.HttpResponseStatus status,
Object data)
protected void sendResponse(io.netty.channel.ChannelHandlerContext ctx,
HttpRequest req,
Object data)
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterpublic abstract Object process(HttpRequest msg) throws Exception
ExceptionCopyright © 2017. All rights reserved.