public class NettyHttpServletHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
| Constructor and Description |
|---|
NettyHttpServletHandler(NettyHttpServletPipelineFactory pipelineFactory) |
| Modifier and Type | Method and Description |
|---|---|
NettyHttpServletHandler |
addInterceptor(NettyInterceptor interceptor) |
protected NettyHttpServletRequest |
buildHttpServletRequest(io.netty.handler.codec.http.HttpRequest request,
String contextPath,
io.netty.channel.ChannelHandlerContext ctx) |
protected NettyServletResponse |
buildHttpServletResponse(io.netty.handler.codec.http.HttpResponse response) |
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
protected void |
handleHttpServletRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest request,
NettyHttpContextHandler nettyHttpContextHandler) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
channelInactive, channelRegistered, channelUnregistered, channelWritabilityChangedhandlerAdded, handlerRemoved, isSharablepublic NettyHttpServletHandler(NettyHttpServletPipelineFactory pipelineFactory)
public NettyHttpServletHandler addInterceptor(NettyInterceptor interceptor)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected void handleHttpServletRequest(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.HttpRequest request,
NettyHttpContextHandler nettyHttpContextHandler)
throws Exception
Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected NettyServletResponse buildHttpServletResponse(io.netty.handler.codec.http.HttpResponse response)
protected NettyHttpServletRequest buildHttpServletRequest(io.netty.handler.codec.http.HttpRequest request, String contextPath, io.netty.channel.ChannelHandlerContext ctx)
Apache CXF