Class LogoutAction
java.lang.Object
com.opensymphony.xwork2.ActionSupport
org.conical.common.bbl.web.struts.actions.LogoutAction
- 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
,org.apache.struts2.interceptor.ServletResponseAware
public class LogoutAction
extends com.opensymphony.xwork2.ActionSupport
implements org.apache.struts2.interceptor.ServletResponseAware
Logs user out of the application by invalidating the entire session
- Author:
- rdoherty
- See Also:
-
Field Summary
Fields inherited from class com.opensymphony.xwork2.ActionSupport
container
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute()
Logs user out of the application by invalidating the entire sessionprotected List<javax.servlet.http.Cookie>
Returns additional cookies to send to user agent upon logout.void
setServletResponse
(javax.servlet.http.HttpServletResponse response) Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, 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, validate
-
Constructor Details
-
LogoutAction
public LogoutAction()
-
-
Method Details
-
execute
Logs user out of the application by invalidating the entire session- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Returns:
- success
- Throws:
Exception
-
getAdditionalCookies
Returns additional cookies to send to user agent upon logout. Default is to return an empty list; can be overridden to return a custom cookie list.- Returns:
- list of custom cookies to return upon logout
-
setServletResponse
public void setServletResponse(javax.servlet.http.HttpServletResponse response) - Specified by:
setServletResponse
in interfaceorg.apache.struts2.interceptor.ServletResponseAware
-