java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mortbay.jetty.servlet.Invoker
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class Invoker
- extends javax.servlet.http.HttpServlet
Dynamic Servlet Invoker.
This servlet invokes anonymous servlets that have not been defined
in the web.xml or by other means. The first element of the pathInfo
of a request passed to the envoker is treated as a servlet name for
an existing servlet, or as a class name of a new servlet.
This servlet is normally mapped to /servlet/*
This servlet support the following initParams:
nonContextServlets If false, the invoker can only load
servlets from the contexts classloader.
This is false by default and setting this
to true may have security implications.
verbose If true, log dynamic loads
* All other parameters are copied to the
each dynamic servlet as init parameters
- Version:
- $Id: Invoker.java,v 1.10 2003/09/18 13:29:24 gregwilkins Exp $
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
_servletHandler
private ServletHandler _servletHandler
_invokerEntry
private java.util.Map.Entry _invokerEntry
_parameters
private java.util.Map _parameters
_nonContextServlets
private boolean _nonContextServlets
_verbose
private boolean _verbose
Invoker
public Invoker()
init
public void init()
- Description copied from class:
javax.servlet.GenericServlet
- A convenience method which can be overridden so that there's no need
to call
super.init(config).
Instead of overriding GenericServlet.init(ServletConfig)>GenericServlet.init(ServletConfig) 55 , simply override
this method and it will be called by
GenericServlet.init(ServletConfig config).
The ServletConfig object can still be retrieved via GenericServlet.getServletConfig()>GenericServlet.getServletConfig() 55 .
service
protected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Description copied from class:
javax.servlet.http.HttpServlet
- Receives standard HTTP requests from the public
service method and dispatches
them to the doXXX methods defined in
this class. This method is an HTTP-specific version of the
Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)>Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) 55 method. There's no
need to override this method.