|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--org.apache.cocoon.servlet.CocoonServlet | +--org.apache.cocoon.servlet.ParanoidCocoonServlet
This is the entry point for Cocoon execution as an HTTP Servlet.
It also creates a buffer by loading the whole servlet inside a ClassLoader.
It has been changed to extend CocoonServlet
so that it is
easier to add and change functionality between the two servlets.
The only real differences are the ClassLoader and instantiating Cocoon inside
of it.
Fields inherited from class org.apache.cocoon.servlet.CocoonServlet |
allowReload, appContext, classLoader, cocoon, creationTime, exception, forceLoadParameter, forceSystemProperty, hiddenShowTime, log, logKitManager, PROCESSED_BY, servletContext, servletContextPath, servletContextURL, showTime |
Constructor Summary | |
ParanoidCocoonServlet()
|
Method Summary | |
protected java.lang.String |
getClassPath()
This builds the important ClassPath used by this Servlet. |
Methods inherited from class org.apache.cocoon.servlet.CocoonServlet |
buildInitClassLoader, destroy, getEnvironment, getExtraClassPath, init, service |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParanoidCocoonServlet()
Method Detail |
protected java.lang.String getClassPath() throws javax.servlet.ServletException
ServletContext
's getRealPath
method
to get the Servlet 2.2 identified classes and lib directories.
It iterates through every file in the lib directory and adds
it to the classpath.
Also, we add the files to the ClassLoader for the Cocoon system.
In order to protect ourselves from skitzofrantic classloaders,
we need to work with a known one.getClassPath
in class CocoonServlet
context
- The ServletContext to perform the lookup.javax.servlet.ServletException
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |