|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--org.apache.cocoon.servlet.BootstrapServlet
A bootstrap servlet to allow Cocoon to run in servlet engines that aren't fully compliant with the servlet 2.2 spec.
This servlet adds a mandatory "context-dir" parameter to those accepted by CocoonServlet
,
which should point to Cocoon's context directory (e.g. "/path-to-webapp/cocoon
").
This directory is used to :
WEB-INF/classes
and WEB-INF/lib
(see
ParanoidClassLoader
),
Nested Class Summary | |
static class |
BootstrapServlet.ConfigWrapper
Implementation of ServletConfig passed to the actual servlet.
|
static class |
BootstrapServlet.ContextWrapper
Wrapper for the ServletContext passed to the actual servlet.
|
Field Summary | |
protected java.lang.ClassLoader |
classloader
|
protected javax.servlet.ServletContext |
context
|
protected javax.servlet.Servlet |
servlet
|
static java.lang.String |
SERVLET_CLASS
The name of the actual servlet class. |
Constructor Summary | |
BootstrapServlet()
|
Method Summary | |
void |
destroy()
Destroy the actual servlet |
protected java.lang.ClassLoader |
getClassLoader(java.lang.String contextDirParam)
Get the classloader that will be used to create the actual servlet. |
void |
init(javax.servlet.ServletConfig config)
|
void |
service(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Service the request by delegating the call to the real servlet |
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 |
Field Detail |
public static final java.lang.String SERVLET_CLASS
protected javax.servlet.Servlet servlet
protected java.lang.ClassLoader classloader
protected javax.servlet.ServletContext context
Constructor Detail |
public BootstrapServlet()
Method Detail |
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected java.lang.ClassLoader getClassLoader(java.lang.String contextDirParam) throws javax.servlet.ServletException
javax.servlet.ServletException
public void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws javax.servlet.ServletException, java.io.IOException
service
in interface javax.servlet.Servlet
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |