public class NettyServletHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
Constructor and Description |
---|
NettyServletHandler(File warFile)
Creates a Netty handler that allow to invoke a Servlet without starting a
HTTP server.
|
NettyServletHandler(String servletClassName)
Creates a Servlet handler that allow to invoke a Servlet without starting
a HTTP server.
|
Modifier and Type | Method and Description |
---|---|
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext context,
org.jboss.netty.channel.MessageEvent event) |
void |
startServer(int port,
String pipelineFactory) |
public NettyServletHandler(File warFile) throws ServletException
warFile
- the location of the war file containing the Servlet, cannot
be
null
.ServletException
- if the Servlet cannot be created.public NettyServletHandler(String servletClassName) throws ServletException
servletClassName
- The name of the servlet's class to load, cannot be
null
.ServletException
- if the Servlet cannot be created.See http://www.xins.org/.