Apache CXF API

org.apache.cxf.transport.http.netty.server
Class NettyHttpServletHandler

java.lang.Object
  extended by io.netty.channel.ChannelHandlerAdapter
      extended by io.netty.channel.ChannelInboundHandlerAdapter
          extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
NettyHttpServletHandler(NettyHttpServletPipelineFactory pipelineFactory)
           
 
Method Summary
 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)
           
 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged
 
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
handlerAdded, handlerRemoved, isSharable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
 

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:
channelActive in interface io.netty.channel.ChannelInboundHandler
Overrides:
channelActive in class io.netty.channel.ChannelInboundHandlerAdapter
Throws:
Exception

userEventTriggered

public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
                               Object evt)
                        throws Exception
Specified by:
userEventTriggered in interface io.netty.channel.ChannelInboundHandler
Overrides:
userEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapter
Throws:
Exception

channelRead

public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
                        Object msg)
                 throws Exception
Specified by:
channelRead in interface io.netty.channel.ChannelInboundHandler
Overrides:
channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
Throws:
Exception

channelReadComplete

public void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
                         throws Exception
Specified by:
channelReadComplete in interface io.netty.channel.ChannelInboundHandler
Overrides:
channelReadComplete in class io.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:
exceptionCaught in interface io.netty.channel.ChannelHandler
Specified by:
exceptionCaught in interface io.netty.channel.ChannelInboundHandler
Overrides:
exceptionCaught in class io.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)

Apache CXF API

Apache CXF