| javax.servlet.http.HttpServlet org.apache.cocoon.servlet.ParanoidCocoonServlet
All known Subclasses: org.apache.cocoon.servlet.BootstrapServlet,
ParanoidCocoonServlet | public class ParanoidCocoonServlet extends HttpServlet (Code) | | This servlet builds a classloading sandbox and runs another servlet inside
that sandbox. The purpose is to shield the libraries and classes shipped with
the web application from any other classes with the same name that may exist
in the system, such as Xerces and Xalan versions included in JDK 1.4.
This servlet propagates all initialisation parameters to the sandboxed
servlet, and accepts the parameters servlet-class and
paranoid-classpath .
servlet-class defines the sandboxed servlet class, the
default is
CocoonServlet paranoid-classpath expects the name of a text file that
can contain lines begining with
class-dir: (directory containing classes),
lib-dir: (directory containing JAR or ZIP libraries) and #
(for comments).
All other lines are considered as URLs.
It is also possible to use a the pseudo protocol prefixcontext:/ which
is resolved to the basedir of the servlet context.
author: Berin Loritsch author: Sylvain Wallez author: Torsten Curdt version: CVS $Id: ParanoidCocoonServlet.java 433543 2006-08-22 06:22:54Z crossley $ |
CONTEXT_PREFIX | final protected static String CONTEXT_PREFIX(Code) | | |
DEFAULT_SERVLET_CLASS | final public static String DEFAULT_SERVLET_CLASS(Code) | | The name of the actual servlet class.
|
destroy | public void destroy()(Code) | | Destroy the actual servlet
|
getClassLoader | protected ClassLoader getClassLoader(File contextDir) throws ServletException(Code) | | Get the classloader that will be used to create the actual servlet. Its
classpath is defined by the WEB-INF/classes and WEB-INF/lib directories
in the context dir.
|
getClassLoader | protected ClassLoader getClassLoader(String externalClasspath, File contextDir) throws ServletException(Code) | | Get the classloader that will be used to create the actual servlet. Its
classpath is defined by an external file.
|
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|