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, channelWritabilityChanged
handlerAdded, handlerRemoved, isSharable
public NettyHttpServletHandler(NettyHttpServletPipelineFactory pipelineFactory)
public NettyHttpServletHandler addInterceptor(NettyInterceptor interceptor)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception
userEventTriggered
in interface io.netty.channel.ChannelInboundHandler
userEventTriggered
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelReadComplete
in interface io.netty.channel.ChannelInboundHandler
channelReadComplete
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
protected void handleHttpServletRequest(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest request, NettyHttpContextHandler nettyHttpContextHandler) throws Exception
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
protected 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