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 |
---|---|
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.
|
public R perform(C context, Config config, HttpActionAdapter<R,C> httpActionAdapter, String defaultUrl, String inputLogoutUrlPattern)
ApplicationLogoutLogic
perform
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 contextCopyright © 2016. All rights reserved.