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:
ConfirmLogoutAction,FinishLogoutAction,FrontChannelLogoutAction,LogoutAction,LogoutViewSetupAction
public abstract class AbstractLogoutAction extends org.springframework.webflow.action.AbstractActionAbstract logout action, which prevents caching on logout.- Since:
- 4.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apereo.cas.web.support.ArgumentExtractorargumentExtractorArgument extractor.protected org.apereo.cas.configuration.CasConfigurationPropertiescasPropertiesCAS properties.protected org.apereo.cas.CentralAuthenticationServicecentralAuthenticationServiceThe cas service.protected org.apereo.cas.logout.LogoutExecutionPlanlogoutExecutionPlanLogout execution plan.protected org.apereo.cas.services.ServicesManagerservicesManagerServices manager.protected org.apereo.cas.web.cookie.CasCookieBuilderticketGrantingTicketCookieGeneratorThe TGT cookie generator.
-
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.
-
-
-
Field Detail
-
centralAuthenticationService
protected final org.apereo.cas.CentralAuthenticationService centralAuthenticationService
The cas service.
-
ticketGrantingTicketCookieGenerator
protected final org.apereo.cas.web.cookie.CasCookieBuilder ticketGrantingTicketCookieGenerator
The TGT cookie generator.
-
argumentExtractor
protected final org.apereo.cas.web.support.ArgumentExtractor argumentExtractor
Argument extractor.
-
servicesManager
protected final org.apereo.cas.services.ServicesManager servicesManager
Services manager.
-
logoutExecutionPlan
protected final org.apereo.cas.logout.LogoutExecutionPlan logoutExecutionPlan
Logout execution plan.
-
casProperties
protected final org.apereo.cas.configuration.CasConfigurationProperties casProperties
CAS properties.
-
-
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.
-
-