public class RedirectToLoginUrl extends SingletonBase implements MissingAuthenticationHandler
When authentication is required but missing, redirect the user to AppConfigKey.URL_LOGIN
Destroyable.Utillogger| Constructor and Description |
|---|
RedirectToLoginUrl() |
RedirectToLoginUrl(java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
findResults(java.lang.String loginUrl,
java.lang.String ajaxLoginUrl,
org.osgl.Osgl.Var<org.osgl.mvc.result.Result> result,
org.osgl.Osgl.Var<org.osgl.mvc.result.Result> ajaxResult,
Router router) |
protected boolean |
hasRouteTo(java.lang.String url,
Router router) |
org.osgl.mvc.result.Result |
result(ActionContext context)
The result to be thrown out when authentication is missing
|
instanceaddSubResource, destroy, isDestroyed, releaseResources, reload, scopedebug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, trace, trace, warn, warnpublic RedirectToLoginUrl(java.lang.String url)
public RedirectToLoginUrl()
public org.osgl.mvc.result.Result result(ActionContext context)
MissingAuthenticationHandlerThe result to be thrown out when authentication is missing
result in interface MissingAuthenticationHandlerprotected void findResults(java.lang.String loginUrl,
java.lang.String ajaxLoginUrl,
org.osgl.Osgl.Var<org.osgl.mvc.result.Result> result,
org.osgl.Osgl.Var<org.osgl.mvc.result.Result> ajaxResult,
Router router)
protected final boolean hasRouteTo(java.lang.String url,
Router router)
Copyright © 2014–2017 ActFramework. All rights reserved.