public class DefaultApplicationLogoutLogic<R,C extends WebContext> extends Object implements ApplicationLogoutLogic<R,C>
Default application logout logic:
After logout, the user is redirected to the url defined by the url request parameter if it matches the logoutUrlPattern.
Or the user is redirected to the defaultUrl if it is defined. Otherwise, a blank page is displayed.
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
DefaultApplicationLogoutLogic() |
| Modifier and Type | Method and Description |
|---|---|
protected ProfileManager |
getProfileManager(C context)
Given a webcontext generate a profileManager for it.
|
java.util.function.Function<C,ProfileManager> |
getProfileManagerFactory() |
boolean |
isKillSession() |
R |
perform(C context,
Config config,
HttpActionAdapter<R,C> httpActionAdapter,
String defaultUrl,
String inputLogoutUrlPattern)
Perform the application logout logic.
|
protected void |
postLogout(C context)
Specific post logout action.
|
void |
setKillSession(boolean killSession) |
void |
setProfileManagerFactory(java.util.function.Function<C,ProfileManager> factory) |
public R perform(C context, Config config, HttpActionAdapter<R,C> httpActionAdapter, String defaultUrl, String inputLogoutUrlPattern)
ApplicationLogoutLogicperform in interface ApplicationLogoutLogic<R,C extends WebContext>context - the web contextconfig - the security configurationhttpActionAdapter - the HTTP action adapterdefaultUrl - the default urlinputLogoutUrlPattern - the logout url patternprotected void postLogout(C context)
context - the web contextprotected ProfileManager getProfileManager(C context)
context - the web contextpublic boolean isKillSession()
public void setKillSession(boolean killSession)
public java.util.function.Function<C,ProfileManager> getProfileManagerFactory()
public void setProfileManagerFactory(java.util.function.Function<C,ProfileManager> factory)
Copyright © 2017. All Rights Reserved.