org.eclipse.jetty.nested
Class NestedJettyServlet

java.lang.Object
  extended by org.eclipse.jetty.nested.NestedJettyServlet
All Implemented Interfaces:
Servlet

public class NestedJettyServlet
extends Object
implements Servlet

Nested Jetty Servlet.

This servlet runs Jetty as a nested server inside another servlet container. The requests received by this servlet are routed via a NestedConnector to the nested jetty servlet and handled by jetty contexts, handlers, webapps and/or servlets.

The servlet can be configured with the following init parameters:


Constructor Summary
NestedJettyServlet()
           
 
Method Summary
 void destroy()
           
 ServletConfig getServletConfig()
           
 String getServletInfo()
           
 void init(ServletConfig config)
           
 void service(ServletRequest req, ServletResponse res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedJettyServlet

public NestedJettyServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Throws:
ServletException

getServletConfig

public ServletConfig getServletConfig()
Specified by:
getServletConfig in interface Servlet

service

public void service(ServletRequest req,
                    ServletResponse res)
             throws ServletException,
                    IOException
Specified by:
service in interface Servlet
Throws:
ServletException
IOException

getServletInfo

public String getServletInfo()
Specified by:
getServletInfo in interface Servlet

destroy

public void destroy()
Specified by:
destroy in interface Servlet


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.