|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.RequestProcessor
org.apache.struts.chain.legacy.ComposableRequestProcessor
ComposableRequestProcessor uses the Chain Of Resposibility design pattern (as implemented by the commons-chain package in Jakarta Commons) to support external configuration of command chains to be used. It is configured via the following context initialization parameters:
Catalog
in which we will look up the Command
to be executed for each request. If not specified, the default value
is struts
.Command
which we will execute for each request, to be
looked up in the specified Catalog
. If not specified,
the default value is servlet-standard
.
Field Summary | |
protected org.apache.commons.chain.Catalog |
catalog
The Catalog containing all of the available command chains
for this module. |
private static java.lang.String |
CATALOG_NAME
Name of the context initialization parameter containing the name of the Catalog we will use. |
protected org.apache.commons.chain.Command |
command
The Command to be executed for each request. |
private static java.lang.String |
COMMAND_NAME
Name of the Command to be executed for each request. |
protected static org.apache.commons.logging.Log |
log
The Log instance for this class. |
Fields inherited from class org.apache.struts.action.RequestProcessor |
actions, INCLUDE_PATH_INFO, INCLUDE_SERVLET_PATH, moduleConfig, servlet |
Constructor Summary | |
ComposableRequestProcessor()
|
Method Summary | |
void |
destroy()
Clean up in preparation for a shutdown of this application. |
void |
init(org.apache.struts.action.ActionServlet servlet,
org.apache.struts.config.ModuleConfig moduleConfig)
Initialize this request processor instance. |
void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process an HttpServletRequest and create the
corresponding HttpServletResponse . |
protected javax.servlet.http.HttpServletRequest |
processMultipart(javax.servlet.http.HttpServletRequest request)
If this is a multipart request, wrap it with a special wrapper. |
Methods inherited from class org.apache.struts.action.RequestProcessor |
doForward, doInclude, getInternal, getServletContext, internalModuleRelativeForward, internalModuleRelativeInclude, log, log, processActionCreate, processActionForm, processActionPerform, processCachedMessages, processContent, processException, processForward, processForwardConfig, processInclude, processLocale, processMapping, processNoCache, processPath, processPopulate, processPreprocess, processRoles, processValidate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String CATALOG_NAME
Name of the context initialization parameter containing the
name of the Catalog
we will use.
private static final java.lang.String COMMAND_NAME
Name of the Command
to be executed for each request.
protected org.apache.commons.chain.Catalog catalog
The Catalog
containing all of the available command chains
for this module.
protected org.apache.commons.chain.Command command
The Command
to be executed for each request.
protected static final org.apache.commons.logging.Log log
The Log
instance for this class.
Constructor Detail |
public ComposableRequestProcessor()
Method Detail |
public void destroy()
public void init(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig moduleConfig) throws javax.servlet.ServletException
Initialize this request processor instance.
servlet
- The ActionServlet we are associated withmoduleConfig
- The ModuleConfig we are associated with.
javax.servlet.ServletException
- If an error occurs during initializationpublic void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
Process an HttpServletRequest
and create the
corresponding HttpServletResponse
.
request
- The servlet request we are processingresponse
- The servlet response we are creating
java.io.IOException
- if an input/output error occurs
javax.servlet.ServletException
- if a processing exception occursprotected javax.servlet.http.HttpServletRequest processMultipart(javax.servlet.http.HttpServletRequest request)
request
- The HttpServletRequest we are processing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |