|
HDIV API 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.RequestProcessor
org.hdiv.action.HDIVRequestProcessor
public class HDIVRequestProcessor
Struts' RequestProcessor extension to visualize the errors produced in the editable fields detected by HDIV.
RequestProcessor| Field Summary |
|---|
| Fields inherited from class org.apache.struts.action.RequestProcessor |
|---|
actions, INCLUDE_PATH_INFO, INCLUDE_SERVLET_PATH, log, moduleConfig, servlet |
| Constructor Summary | |
|---|---|
HDIVRequestProcessor()
|
|
| Method Summary | |
|---|---|
java.lang.String |
createMessageError(java.lang.String[] values)
It creates the message error from the values values. |
org.apache.struts.action.ActionMessages |
getEditableParametersErrors(javax.servlet.http.HttpServletRequest request)
Obtains the errors detected by HDIV during the validation process of the editable parameters. |
protected void |
processForwardConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.config.ForwardConfig forward)
Forward or redirect to the specified destination, by the specified mechanism. |
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)
If this request was not cancelled, and the request's ActionMapping has
not disabled validation, call the validate method of the
specified ActionForm, and forward to the input path if there were any
errors. |
| Methods inherited from class org.apache.struts.action.RequestProcessor |
|---|
destroy, doForward, doInclude, getInternal, getServletContext, init, internalModuleRelativeForward, internalModuleRelativeInclude, process, processActionCreate, processActionForm, processActionPerform, processCachedMessages, processContent, processException, processForward, processInclude, processLocale, processMapping, processMultipart, processNoCache, processPath, processPopulate, processPreprocess, processRoles |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HDIVRequestProcessor()
| Method Detail |
|---|
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 java.io.IOException,
javax.servlet.ServletException,
org.apache.struts.action.InvalidCancelException
If this request was not cancelled, and the request's ActionMapping has
not disabled validation, call the validate method of the
specified ActionForm, and forward to the input path if there were any
errors. Return true if we should continue processing, or
false if we have already forwarded control back to the input
form.
processValidate in class org.apache.struts.action.RequestProcessorrequest - The servlet request we are processingresponse - The servlet response we are creatingform - The ActionForm instance we are populatingmapping - The ActionMapping we are using
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet exception occurs
org.apache.struts.action.InvalidCancelException - if a cancellation is attempted without the
proper action configurationpublic org.apache.struts.action.ActionMessages getEditableParametersErrors(javax.servlet.http.HttpServletRequest request)
request - The servlet request we are processing
public java.lang.String createMessageError(java.lang.String[] values)
values.
values - values with not allowed characters
protected void processForwardConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.config.ForwardConfig forward)
throws java.io.IOException,
javax.servlet.ServletException
Forward or redirect to the specified destination, by the specified
mechanism. This method uses a ForwardConfig object
instead an ActionForward.
processForwardConfig in class org.apache.struts.action.RequestProcessorrequest - The servlet request we are processingresponse - The servlet response we are creatingforward - The ForwardConfig controlling where we go next
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet exception occurs
|
HDIV 2.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||