|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.adapter.struts.RequestProcessorUtil
Utilities for RequestProcessor derived classes
Field Summary | |
private static org.apache.commons.logging.Log |
log
Commons Logging instance. |
Constructor Summary | |
RequestProcessorUtil()
|
Method Summary | |
static void |
assertRoles(java.lang.String roles,
Principal principal)
This method checks if the current principal has the required permission. |
static java.lang.String |
getForwardURL(java.lang.String url)
Workaround for problems with WAS4.0 |
static void |
postProcessPopulate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping)
Populate the properties of the specified ActionForm
instance from the request parameters included with this request. |
static void |
preProcessPopulate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionForm form,
org.apache.struts.action.ActionMapping mapping)
Populate the properties of the specified ActionForm
instance from the request parameters included with this request. |
static org.apache.struts.action.ActionForward |
processAction(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)
Ask the specified Action instance to handle this request.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static org.apache.commons.logging.Log log
Constructor Detail |
public RequestProcessorUtil()
Method Detail |
public static org.apache.struts.action.ActionForward processAction(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 java.lang.Exception
Action
instance to handle this request.
Return the ActionForward
instance (if any) returned by the
called Action
for further processing.
request
- The servlet request we are processingresponse
- The servlet response we are creatingaction
- The Action instance to be usedform
- The ActionForm instance to pass to this Actionmapping
- The ActionMapping instance to pass to this Action
null
java.lang.Exception
- if an error occurspublic static void preProcessPopulate(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
Populate the properties of the specified ActionForm
instance from the request parameters included with this request. In
addition, request attribute Globals.CANCEL_KEY
will be set
if the request was submitted with a button created by
CancelTag
.
request
- The servlet request we are processingresponse
- The servlet response we are creatingform
- The ActionForm instance we are populatingmapping
- The ActionMapping we are using
javax.servlet.ServletException
- if thrown by RequestUtils.populate()public static void postProcessPopulate(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
Populate the properties of the specified ActionForm
instance from the request parameters included with this request. In
addition, request attribute Globals.CANCEL_KEY
will be set
if the request was submitted with a button created by
CancelTag
.
request
- The servlet request we are processingresponse
- The servlet response we are creatingform
- The ActionForm instance we are populatingmapping
- The ActionMapping we are using
javax.servlet.ServletException
- if thrown by RequestUtils.populate()public static void assertRoles(java.lang.String roles, Principal principal) throws PermissionException
roles
- required roles for this actionprincipal
- the current principal
PermissionException
- is thrown if the users permissions are insufficientpublic static java.lang.String getForwardURL(java.lang.String url)
url
- Die URL
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |