Class AbstractActionSupport
java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
name.matthewgreet.strutscommons.action.AbstractActionSupport
- All Implemented Interfaces:
com.opensymphony.xwork2.Action,com.opensymphony.xwork2.interceptor.ValidationAware,com.opensymphony.xwork2.LocaleProvider,com.opensymphony.xwork2.TextProvider,com.opensymphony.xwork2.Validateable,Serializable,BrowserTabAware,BrowserTabAware2,org.apache.struts2.action.Action,org.apache.struts2.action.ServletRequestAware,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.Validateable
- Direct Known Subclasses:
AbstractFormDrivenActionSupport,AbstractJsonServerAction,AbstractViewActionSupport
public abstract class AbstractActionSupport
extends com.opensymphony.xwork2.ActionSupport
implements BrowserTabAware, BrowserTabAware2, org.apache.struts2.action.ServletRequestAware
Base class of Struts 2 Action that supports server state per browser tab.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
com.opensymphony.xwork2.interceptor.ValidationAware.LegacyAdapter -
Field Summary
Fields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a session that distinguishes between different tabs of the same web browser.protected abstract org.apache.logging.log4j.LoggerReturns logger for recording events, which should be overridden by the implementing subclass.javax.servlet.http.HttpServletRequestgetTabId()Deprecated.Suffers from a design flaw of not handling when a user opens a link in a new tab.voidSets a session that distinguishes between different tabs of the same web browser.voidDeprecated.Suffers from a design flaw of not handling when a user opens a link in a new tab.voidwithServletRequest(javax.servlet.http.HttpServletRequest request) Methods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getLocaleProvider, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validateMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.action.Action
executeMethods inherited from interface name.matthewgreet.strutscommons.action.BrowserTabAware2
copyAttributesFromOldTabToNewTab, handleAttributeFailuresMethods inherited from interface org.apache.struts2.Validateable
validateMethods inherited from interface org.apache.struts2.interceptor.ValidationAware
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getFieldErrors, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
Constructor Details
-
AbstractActionSupport
public AbstractActionSupport()
-
-
Method Details
-
getLogger
protected abstract org.apache.logging.log4j.Logger getLogger()Returns logger for recording events, which should be overridden by the implementing subclass. -
getTabId
Deprecated.Suffers from a design flaw of not handling when a user opens a link in a new tab. Obtain theBrowserTabSessioninstance usinggetBrowserTabSession()and place session objects in that.Returns browser tab id, distinguishing between browser tabs on the same web browser.- Specified by:
getTabIdin interfaceBrowserTabAware
-
setTabId
Deprecated.Suffers from a design flaw of not handling when a user opens a link in a new tab. Obtain theBrowserTabSessioninstance usinggetBrowserTabSession()and place session objects in that.Sets browser tab id, distinguishing between browser tabs on the same web browser.- Specified by:
setTabIdin interfaceBrowserTabAware
-
getBrowserTabSession
Returns a session that distinguishes between different tabs of the same web browser.- Specified by:
getBrowserTabSessionin interfaceBrowserTabAware2
-
setBrowserTabSession
Sets a session that distinguishes between different tabs of the same web browser.- Specified by:
setBrowserTabSessionin interfaceBrowserTabAware2
-
getServletRequest
public javax.servlet.http.HttpServletRequest getServletRequest() -
withServletRequest
public void withServletRequest(javax.servlet.http.HttpServletRequest request) - Specified by:
withServletRequestin interfaceorg.apache.struts2.action.ServletRequestAware
-