public class KualiRequestProcessor extends org.apache.struts.action.RequestProcessor
Constructor and Description |
---|
KualiRequestProcessor() |
Modifier and Type | Method and Description |
---|---|
org.kuali.rice.kns.service.SessionDocumentService |
getSessionDocumentService() |
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager() |
void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected org.apache.struts.action.ActionForm |
processActionForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping)
Checks for return from a lookup or question, and restores the action form
stored under the request parameter docFormKey.
|
protected org.apache.struts.action.ActionForward |
processActionPerform(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.Action action,
org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping)
Hook into action perform to handle errors in the error map and catch
exceptions.
|
protected org.apache.struts.action.ActionForward |
processException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception exception,
org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping)
Adds more detailed logging for unhandled exceptions
|
void |
processFormActionAndForward(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionMapping mapping) |
protected void |
processPopulate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping)
Hooks into populate process to call form populate method if form is an
instanceof PojoForm.
|
protected boolean |
processPreprocess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected boolean |
processValidate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping)
Hooks into validate to catch any errors from the populate, and translate
the ErrorMap to ActionMessages.
|
void |
strutsProcess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
ProcessDefinition an
HttpServletRequest and create the
corresponding HttpServletResponse or dispatch
to another resource. |
destroy, doForward, doInclude, getInternal, getServletContext, init, internalModuleRelativeForward, internalModuleRelativeInclude, processActionCreate, processCachedMessages, processContent, processForward, processForwardConfig, processInclude, processLocale, processMapping, processMultipart, processNoCache, processPath, processRoles
public KualiRequestProcessor()
public void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
process
in class org.apache.struts.action.RequestProcessor
IOException
javax.servlet.ServletException
protected boolean processPreprocess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
processPreprocess
in class org.apache.struts.action.RequestProcessor
public void strutsProcess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
ProcessDefinition an HttpServletRequest
and create the
corresponding HttpServletResponse
or dispatch
to another resource.
request
- The servlet request we are processingresponse
- The servlet response we are creatingIOException
- if an input/output error occursjavax.servlet.ServletException
- if a processing exception occurspublic void processFormActionAndForward(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionMapping mapping) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
protected void processPopulate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping) throws javax.servlet.ServletException
processPopulate
in class org.apache.struts.action.RequestProcessor
javax.servlet.ServletException
protected boolean processValidate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping) throws IOException, javax.servlet.ServletException, org.apache.struts.action.InvalidCancelException
processValidate
in class org.apache.struts.action.RequestProcessor
IOException
javax.servlet.ServletException
org.apache.struts.action.InvalidCancelException
protected org.apache.struts.action.ActionForm processActionForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionMapping mapping)
processActionForm
in class org.apache.struts.action.RequestProcessor
protected org.apache.struts.action.ActionForward processActionPerform(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.Action action, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping) throws IOException, javax.servlet.ServletException
A transaction is started prior to the execution of the action. This allows for the action code to execute efficiently without the need for using PROPAGATION_SUPPORTS in the transaction definitions. The PROPAGATION_SUPPORTS propagation type does not work well with JTA.
processActionPerform
in class org.apache.struts.action.RequestProcessor
IOException
javax.servlet.ServletException
protected org.apache.struts.action.ActionForward processException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Exception exception, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping) throws IOException, javax.servlet.ServletException
processException
in class org.apache.struts.action.RequestProcessor
IOException
javax.servlet.ServletException
RequestProcessor.processException(HttpServletRequest,
HttpServletResponse, Exception, ActionForm, ActionMapping)
public org.kuali.rice.kns.service.SessionDocumentService getSessionDocumentService()
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.