Package org.apereo.cas.web.flow.logout
Class AbstractLogoutAction
- java.lang.Object
-
- org.springframework.webflow.action.AbstractAction
-
- org.apereo.cas.web.flow.logout.AbstractLogoutAction
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.webflow.execution.Action
- Direct Known Subclasses:
FrontChannelLogoutAction,LogoutAction,LogoutViewSetupAction
public abstract class AbstractLogoutAction extends org.springframework.webflow.action.AbstractActionAbstract logout action, which prevents caching on logout.- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Constructor Description AbstractLogoutAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.springframework.webflow.execution.EventdoExecute(org.springframework.webflow.execution.RequestContext context)protected abstract org.springframework.webflow.execution.EventdoInternalExecute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.webflow.execution.RequestContext context)Execute the logout action after invalidating the cache.protected voidpreventCaching(javax.servlet.http.HttpServletResponse response)Prevent caching by adding the appropriate headers.
-
-
-
Method Detail
-
doExecute
public org.springframework.webflow.execution.Event doExecute(org.springframework.webflow.execution.RequestContext context)
- Specified by:
doExecutein classorg.springframework.webflow.action.AbstractAction
-
doInternalExecute
protected abstract org.springframework.webflow.execution.Event doInternalExecute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.webflow.execution.RequestContext context)Execute the logout action after invalidating the cache.- Parameters:
request- the HTTP request.response- the HTTP response.context- the webflow context.- Returns:
- the event triggered by this actions.
-
preventCaching
protected void preventCaching(javax.servlet.http.HttpServletResponse response)
Prevent caching by adding the appropriate headers. Copied from thepreventCachingmethod in theWebContentGeneratorclass.- Parameters:
response- the HTTP response.
-
-