getInstance(Configurations confs,
java.lang.Object context)
This will return a new instance of the Engine class, and handle
pooling of instances.
java.util.Hashtable
getStatus()
Returns an hashtable of parameters used to report the internal status.
void
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is called to start the processing when calling the engine
from the Cocoon servlet.
public static EnginegetInstance(Configurations confs,
java.lang.Object context)
throws java.lang.Exception
This will return a new instance of the Engine class, and handle
pooling of instances. In this implementation, one instance is
created per servlet context. This replaces using the constructor
directly, because now the Cocoon servlet can initialize the
Engine, and other servlets and classes can use the same engine,
in order to funnel requests through Cocoon.
Parameters:
confs - - Configuration file information
context - - Object to use for Servlet Context
Returns:
Engine - instance to operate on
Throws:
java.lang.Exception - - when things go awry
getInstance
public static EnginegetInstance()
throws java.lang.Exception
This is the getInstance() version that should be used by
anything other than the Cocoon servlet itself. This assumes that
the engine has been set up and is ready to be used. If this is called
before the instance has been correctly created, it throws an
exception.
Returns:
Engine - instance to operate on
handle
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
This method is called to start the processing when calling the engine
from the Cocoon servlet.
getStatus
public java.util.Hashtable getStatus()
Returns an hashtable of parameters used to report the internal status.