com.ibm.btt.struts.actions
Class BTTBaseAction
java.lang.Object
org.apache.struts.action.Action
com.ibm.btt.struts.actions.BTTBaseAction
public class BTTBaseAction
- extends org.apache.struts.action.Action
Fields inherited from class org.apache.struts.action.Action |
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY |
Method Summary |
org.apache.struts.action.ActionForward |
doAction(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Provide a Virtual Menthod named doAction . |
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)
|
Context |
getActionCtx(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
get actionContext from http request |
TokenProcessorInterface |
getInstanceOfToken(java.lang.String token)
get Instance of Token |
Context |
getProcessCtx(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
|
java.lang.String |
getProcessId(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
|
java.lang.String |
getSessionId(javax.servlet.http.HttpServletRequest request)
|
java.lang.String |
getTokenProcessor()
get TokenProcessor from web.xml |
boolean |
isBTTTokenValid(javax.servlet.http.HttpServletRequest request)
|
boolean |
isNeedToken()
|
boolean |
isWorkAreaSupport()
Session propagation is configured on the system configuration file (e.g. |
void |
resetBTTToken(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
|
void |
saveBTTToken(javax.servlet.http.HttpServletRequest request)
|
Methods inherited from class org.apache.struts.action.Action |
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USING_WORKAREA
public static final java.lang.String USING_WORKAREA
- See Also:
- Constant Field Values
processorUtil
public BTTRequestProcessorUtil processorUtil
bttToken
TokenProcessorInterface bttToken
BTTBaseAction
public BTTBaseAction()
getSessionId
public java.lang.String getSessionId(javax.servlet.http.HttpServletRequest request)
- Parameters:
request
-
- Returns:
- String
doAction
public org.apache.struts.action.ActionForward doAction(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
- Provide a Virtual Menthod named doAction . The method would be invoked in
the entry method of Action named execute EveryBody can override the
method to insert the business logic
- Parameters:
mapping
- form
- request
- response
-
- Returns:
- ActionForward
- Throws:
java.lang.Exception
execute
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
- Overrides:
execute
in class org.apache.struts.action.Action
- Throws:
java.lang.Exception
- See Also:
Action.execute(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm,
javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
isBTTTokenValid
public boolean isBTTTokenValid(javax.servlet.http.HttpServletRequest request)
- Parameters:
request
-
- Returns:
- boolean
saveBTTToken
public void saveBTTToken(javax.servlet.http.HttpServletRequest request)
- Parameters:
request
-
resetBTTToken
public void resetBTTToken(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
- Parameters:
request
-
isNeedToken
public boolean isNeedToken()
- Returns:
- boolean
isWorkAreaSupport
public boolean isWorkAreaSupport()
- Session propagation is configured on the system configuration file (e.g.
dse.ini) to indicate using WorkArea or not. The default value is false
- Returns:
- boolean
getTokenProcessor
public java.lang.String getTokenProcessor()
- get TokenProcessor from web.xml
- Returns:
getProcessCtx
public Context getProcessCtx(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
- Parameters:
request
- mapping
-
- Returns:
- Context
getActionCtx
public Context getActionCtx(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
- get actionContext from http request
- Parameters:
request
- mapping
-
- Returns:
- Context
getProcessId
public java.lang.String getProcessId(javax.servlet.http.HttpServletRequest request,
org.apache.struts.action.ActionMapping mapping)
- Parameters:
request
- mapping
-
- Returns:
- String
getInstanceOfToken
public TokenProcessorInterface getInstanceOfToken(java.lang.String token)
throws java.lang.Exception
- get Instance of Token
- Parameters:
token
- name
- Returns:
-
- Throws:
java.lang.Exception
(c) Copyright IBM Corporation 1998, 2008