|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action org.figure8.join.control.JoinAction
public abstract class JoinAction
An abstract Action class that all Join action classes must extend. This
class implements Struts execute() method as a wrapper to a new doExecute()
abstract method. This wrapper is intended to perform some pre-processing
(such as retrieving the specified operation to invoke) and some post-processing
(such as performing different rendering based on given informations).
As a consequence, the doExecute() method of the subclasses should only
return ActionForward
those path are a page fragment : this
fragment (or tile) will be inserted into a specific page layout by this
super class.
Field Summary | |
---|---|
static java.lang.String |
BODY_ATTRIBUTE
The request attribute which will contain the path of the page body. |
static java.lang.String |
BODY_PARAMETER
The request parameter which will contain the pathc of the page body. |
static java.lang.String |
EXCEPTION_KEY
The request attribute which will contain exception thrown by action processing. |
static java.lang.String |
GUI_KEY
The key of the ResourceBundle for GUI related resources. |
static java.lang.String |
OP_PARAMETER
The request parameter which contains the operation name. |
static java.lang.String |
REND_MAIN
Rendering value for main page rendering |
static java.lang.String |
REND_NONE
Rendering value for no page rendering (inclusion necessary) |
static java.lang.String |
REND_PARAMETER
The request parameter which contains graphical rendering operation. |
static java.lang.String |
REND_POPUP
Rendering value for popup page rendering |
static java.lang.String |
XHR_PARAMETER
The request parameter which tells that request has been made using XmlHttpRequest (Ajax) |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
JoinAction()
|
Method Summary | |
---|---|
abstract org.apache.struts.action.ActionForward |
doExecute(java.lang.String operation,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Abstract method that subclasses must implement. |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method acts as a wrapper around doExecute() abstract method. |
static UserContainer |
getUserContainer(javax.servlet.http.HttpServletRequest request)
Retrieve the user container for the user tied to the HttpServletRequest. |
static boolean |
isLoggedIn(javax.servlet.http.HttpServletRequest request)
Check if user tied to the HttpServletRequest is logged in Join application (ie : has a non empty UserContainer). |
protected boolean |
isXhrRequest(javax.servlet.http.HttpServletRequest request)
Tells wether a request has been submitted using XmlHttpRequest |
protected void |
removeObsoleteForm(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest request)
Remove the obsolete form associated to action ; wether the form is request or session scoped. |
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, 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 |
---|
public static final java.lang.String GUI_KEY
public static final java.lang.String OP_PARAMETER
public static final java.lang.String REND_PARAMETER
public static final java.lang.String XHR_PARAMETER
public static final java.lang.String BODY_ATTRIBUTE
public static final java.lang.String BODY_PARAMETER
public static final java.lang.String EXCEPTION_KEY
public static final java.lang.String REND_MAIN
public static final java.lang.String REND_POPUP
public static final java.lang.String REND_NONE
Constructor Detail |
---|
public JoinAction()
Method Detail |
---|
public abstract org.apache.struts.action.ActionForward doExecute(java.lang.String operation, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
operation
- String representing the operation to invoke on Actionmapping
- Mapping between forwards name and path for this actionform
- The form object containing request parametersrequest
- The servlet container request wrapperresponse
- The servlet container response wrapper
java.lang.Exception
- such as InfraStructureExceptions ...public static boolean isLoggedIn(javax.servlet.http.HttpServletRequest request)
request
- The servlet container request wrapper
public static UserContainer getUserContainer(javax.servlet.http.HttpServletRequest request)
request
- The servlet container request wrapper
UserView
associated if it's not logged in)protected void removeObsoleteForm(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
mapping
- Mapping between forwards name and path for this actionrequest
- The servlet container request wrapperprotected boolean isXhrRequest(javax.servlet.http.HttpServletRequest request)
request
- The servlet container request wrapper
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
execute
in class org.apache.struts.action.Action
mapping
- Mapping between forwards name and path for this actionform
- The form object containing request parametersrequest
- The servlet container request wrapperresponse
- The servlet container response wrapper
java.lang.Exception
- ... this should not happen ...
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |