Class NettyHttpServletHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.apache.cxf.transport.http.netty.server.NettyHttpServletHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class NettyHttpServletHandler extends io.netty.channel.ChannelInboundHandlerAdapter
-
-
Constructor Summary
Constructors Constructor Description NettyHttpServletHandler(NettyHttpServletPipelineFactory pipelineFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NettyHttpServletHandleraddInterceptor(NettyInterceptor interceptor)protected NettyHttpServletRequestbuildHttpServletRequest(io.netty.handler.codec.http.HttpRequest request, String contextPath, io.netty.channel.ChannelHandlerContext ctx)protected NettyServletResponsebuildHttpServletResponse(io.netty.handler.codec.http.HttpResponse response)voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)voidchannelReadComplete(io.netty.channel.ChannelHandlerContext ctx)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)protected voidhandleHttpServletRequest(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest request, NettyHttpContextHandler nettyHttpContextHandler)voiduserEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt)-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Constructor Detail
-
NettyHttpServletHandler
public NettyHttpServletHandler(NettyHttpServletPipelineFactory pipelineFactory)
-
-
Method Detail
-
addInterceptor
public NettyHttpServletHandler addInterceptor(NettyInterceptor interceptor)
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
userEventTriggered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception- Specified by:
userEventTriggeredin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
userEventTriggeredin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelReadComplete
public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) throws Exception- Specified by:
channelReadCompletein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadCompletein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
handleHttpServletRequest
protected void handleHttpServletRequest(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest request, NettyHttpContextHandler nettyHttpContextHandler) throws Exception- Throws:
Exception
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
buildHttpServletResponse
protected NettyServletResponse buildHttpServletResponse(io.netty.handler.codec.http.HttpResponse response)
-
buildHttpServletRequest
protected NettyHttpServletRequest buildHttpServletRequest(io.netty.handler.codec.http.HttpRequest request, String contextPath, io.netty.channel.ChannelHandlerContext ctx)
-
-