Class AbstractActionSupport
java.lang.Object
org.apache.struts2.ActionSupport
com.opensymphony.xwork2.ActionSupport
name.matthewgreet.strutscommons.action.AbstractActionSupport
- All Implemented Interfaces:
Action,ValidationAware,LocaleProvider,TextProvider,Validateable,Serializable,BrowserTabAware,BrowserTabAware2,LoggingAware,ValidationAware2,Action,ServletRequestAware,ValidationAware,Validateable
- Direct Known Subclasses:
AbstractFormDrivenActionSupport,AbstractJsonServerAction,AbstractViewActionSupport
public abstract class AbstractActionSupport
extends ActionSupport
implements BrowserTabAware, BrowserTabAware2, LoggingAware, ServletRequestAware, ValidationAware2
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
ValidationAware.LegacyAdapter -
Field Summary
Fields inherited from class org.apache.struts2.ActionSupport
container -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionWarning(String message) Adds warning message to display to the user.Returns warning messages to display to the user.Returns a session that distinguishes between different tabs of the same web browser.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.booleanReturns whether there are any warning messages.voidsetActionWarnings(Collection<String> messages) Sets warning messages to display to the user.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 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
public abstract org.apache.logging.log4j.Logger getLogger()Returns logger for recording events, which should be overridden by the implementing subclass.- Specified by:
getLoggerin interfaceLoggingAware
-
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
-
getActionWarnings
Description copied from interface:ValidationAware2Returns warning messages to display to the user. New messages should not be added to the result, use#addActionWarninginstead.- Specified by:
getActionWarningsin interfaceValidationAware2
-
setActionWarnings
Description copied from interface:ValidationAware2Sets warning messages to display to the user.- Specified by:
setActionWarningsin interfaceValidationAware2
-
addActionWarning
Description copied from interface:ValidationAware2Adds warning message to display to the user.- Specified by:
addActionWarningin interfaceValidationAware2
-
hasActionWarnings
public boolean hasActionWarnings()Description copied from interface:ValidationAware2Returns whether there are any warning messages.- Specified by:
hasActionWarningsin interfaceValidationAware2
-
getServletRequest
public javax.servlet.http.HttpServletRequest getServletRequest() -
withServletRequest
public void withServletRequest(javax.servlet.http.HttpServletRequest request) - Specified by:
withServletRequestin interfaceServletRequestAware
-