org.eclipse.jetty.nested
Class NestedJettyServlet
java.lang.Object
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:
- debug - if true then jetty debugging is turned on
- webapp - set to the resource path of the webapplication to deploy
- jetty.xml - set the the resource path of a jetty xml file used to configure the server
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NestedJettyServlet
public NestedJettyServlet()
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.