public abstract class AbstractLoginController
extends org.springframework.web.servlet.mvc.AbstractController
onSuccess(HttpServletRequest, HttpServletResponse) if authentication is successful, or
onFailure(HttpServletRequest, HttpServletResponse) if authentication fails.| Modifier and Type | Field and Description |
|---|---|
protected static String |
PARAM_PASSWORD |
protected static String |
PARAM_USERNAME |
| Constructor and Description |
|---|
AbstractLoginController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected abstract void |
onFailure(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Template method.
|
protected abstract void |
onSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Template method.
|
void |
setUserFactory(UserFactory userFactory)
This method is provided to allow the Spring framework to set a
UserFactory required for authenticating
requests |
void |
setWebFrameworkConfiguration(WebFrameworkConfigElement webFrameworkConfiguration) |
handleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprotected static final String PARAM_PASSWORD
protected static final String PARAM_USERNAME
public void setUserFactory(UserFactory userFactory)
This method is provided to allow the Spring framework to set a UserFactory required for authenticating
requests
userFactory - UserFactorypublic void setWebFrameworkConfiguration(WebFrameworkConfigElement webFrameworkConfiguration)
public org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractControllerExceptionprotected abstract void onFailure(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
request - current HTTP requestresponse - current HTTP responseException - in case of errorsprotected abstract void onSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
request - current HTTP requestresponse - current HTTP responseException - in case of errorsCopyright © 2005–2016 Alfresco Software. All rights reserved.