|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.opensymphony.xwork2.ActionSupport com.jfw.web.struts2.JFWAction com.jfw.status.struts2.AdministrationAction
public abstract class AdministrationAction
The main action class for package com.jfw.status.struts2. All the other action
classes of the package extends this one.
The subclasses must implement the method myStatusExecute(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.util.HashMap)
.
Field Summary |
---|
Fields inherited from class com.jfw.web.struts2.JFWAction |
---|
className, LOCALE_KEY, LOCALE_STRUTS2_SESSION_KEY |
Fields inherited from class com.opensymphony.xwork2.ActionSupport |
---|
LOG |
Fields inherited from interface com.opensymphony.xwork2.Action |
---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Constructor Summary | |
---|---|
AdministrationAction()
|
Method Summary | |
---|---|
protected java.lang.String |
afterMyExecute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.HashMap outputData)
Set actions suffix. |
protected boolean |
isAuthenticated(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.HashMap outputData)
Return always true. |
protected int |
isAuthorized(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
UserData userData)
Return always AUTHORIZE_ALL. |
java.lang.String |
myExecute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.HashMap outputData)
Check the login credentials for the adminstration console. |
abstract java.lang.String |
myStatusExecute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.HashMap outputData)
Must be implement by subclasses. |
Methods inherited from class com.jfw.web.struts2.JFWAction |
---|
beforeMyExecute, execute, getLocale, getLocaleLanguage, getModel, getServletRequest, getServletResponse, getUser, initLocale, isSimulateAuthentication, isSimulateAuthorization, security, setLocale, setLocale, setServletRequest, setServletResponse, setUserDataInOutputData |
Methods inherited from class com.opensymphony.xwork2.ActionSupport |
---|
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdministrationAction()
Method Detail |
---|
public final java.lang.String myExecute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.HashMap outputData) throws java.lang.Exception
myExecute
in class JFWAction
request
- an HttpServletRequest object.response
- an HttpServletResponse object.outputData
- the HashMap container of data to view in jsp. To show the
values added in this object a code like this can be used:<bean:write name="OUTPUT_DATA_KEY" property="my_key" scope="request"/>
java.lang.Exception
protected boolean isAuthenticated(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.HashMap outputData)
StatusAuthentication
, called in method myExecute(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.util.HashMap)
.
isAuthenticated
in class JFWAction
request
- an HttpServletRequest object.response
- an HttpServletResponse object.outputData
- the HashMap container of data to view in jsp.
protected int isAuthorized(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, UserData userData)
isAuthorized
in class JFWAction
request
- an HttpServletRequest object.response
- an HttpServletResponse object.userData
- a UserData
object.
protected java.lang.String afterMyExecute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.HashMap outputData) throws java.lang.Exception
afterMyExecute
in class JFWAction
request
- an HttpServletRequest object.response
- an HttpServletResponse object.outputData
- the HashMap container of data to view in jsp.
java.lang.Exception
public abstract java.lang.String myStatusExecute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.HashMap outputData) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |