|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.Action
org.sigpath.action.ActionRoot
public abstract class ActionRoot
Base class for all Action classes. Centralizes all live debugging, http
snooping and exception handling. All action classes should extend from this
class and implement the _perform() method.
Note: According to the Struts documentation:
| Field Summary | |
|---|---|
protected static String |
ERROR
Forward Request to Error Page. |
protected static String |
FAILURE
Forward Request to Failure Page. |
protected static String |
NOT_AUTHENTICATED
User is not authenticated. |
protected static String |
SESSION_XDEBUG
Session String for XDebug Object. |
protected static String |
SIGPATH_MAINPAGE
Session String for mapping of Sigpath Main Homepage. |
protected static String |
SUCCESS
Forward Request to Success Page. |
| Fields inherited from class org.apache.struts.action.Action |
|---|
defaultLocale, servlet |
| Constructor Summary | |
|---|---|
ActionRoot()
Default constructor. |
|
| Method Summary | |
|---|---|
protected abstract org.apache.struts.action.ActionForward |
_perform(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response,
org.apache.struts.action.ActionForward actionForward,
XDebug xdebug)
Perform actual action work. |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
This is the main action called from the struts framework. |
protected org.apache.struts.action.ActionForward |
redirectToNextPage(org.apache.struts.action.ActionForward forward,
HttpServletRequest request,
XDebug xdebug)
Redirects to nextPage if it is in session. |
protected void |
setUserMessage(String msg,
HttpServletRequest request,
XDebug xdebug)
Sets the User Message. |
protected org.apache.struts.action.ActionForward |
tapestryExternalPage(String page,
Object[] parameters)
Forwards to a tapestry external page with an optional set of parameters. |
protected org.apache.struts.action.ActionForward |
tapestryPage(String page)
Forwards to a tapestry page. |
| Methods inherited from class org.apache.struts.action.Action |
|---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String SUCCESS
protected static final String FAILURE
protected static final String ERROR
protected static final String NOT_AUTHENTICATED
protected static final String SESSION_XDEBUG
protected static final String SIGPATH_MAINPAGE
| Constructor Detail |
|---|
public ActionRoot()
| Method Detail |
|---|
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
execute in class org.apache.struts.action.Actionmapping - The ActionMapping used to select this instanceform - The optional ActionForm bean for this request (if any)request - The HTTP request we are processingresponse - The HTTP response we are creating
IOException - if an input/output error occurs
ServletException - if a servlet exception occurs
protected org.apache.struts.action.ActionForward redirectToNextPage(org.apache.struts.action.ActionForward forward,
HttpServletRequest request,
XDebug xdebug)
request - The HTTP request we are processingxdebug - XDebug object to write log messages to
protected abstract org.apache.struts.action.ActionForward _perform(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response,
org.apache.struts.action.ActionForward actionForward,
XDebug xdebug)
throws Exception
mapping - The ActionMapping used to select this instanceform - The optional ActionForm bean for this request (if any)request - The HTTP request we are processingresponse - The HTTP response we are creatingxdebug - XDebug object to write log messages to
Exception
protected void setUserMessage(String msg,
HttpServletRequest request,
XDebug xdebug)
request - The HTTP request we are processingxdebug - XDebug object to write log messages toprotected org.apache.struts.action.ActionForward tapestryPage(String page)
page - The tapestry page name
protected org.apache.struts.action.ActionForward tapestryExternalPage(String page,
Object[] parameters)
page - The tapestry external page nameparameters - Array of parameters
|
SigPath | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||