public abstract class HttpPrePostProcessor extends io.netty.channel.SimpleChannelInboundHandler<Object>
| Constructor and Description |
|---|
HttpPrePostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
abstract Object |
process(HttpRequest msg) |
abstract Object |
process(HttpResponse 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 request,
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,
Object msg)
throws Exception
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 request,
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
Exceptionpublic abstract Object process(HttpResponse msg) throws Exception
ExceptionCopyright © 2017. All rights reserved.