public class LoginController
extends org.springframework.web.servlet.mvc.SimpleFormController
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
logger |
private boolean |
mobile |
private java.lang.String |
newUserUrl |
private java.lang.String |
successUrl |
Constructor and Description |
---|
LoginController() |
Modifier and Type | Method and Description |
---|---|
protected void |
onBindAndValidate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors) |
protected org.springframework.web.servlet.ModelAndView |
onSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors) |
private org.springframework.web.servlet.ModelAndView |
performLogin(javax.servlet.http.HttpServletRequest request,
java.lang.String username) |
void |
setMobile(boolean mobile) |
void |
setNewUserUrl(java.lang.String newUserUrl) |
void |
setSuccessUrl(java.lang.String url) |
protected org.springframework.web.servlet.ModelAndView |
showForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.validation.BindException errors,
java.util.Map controlModel) |
doSubmitAction, getFormView, getSuccessView, isFormChangeRequest, isFormChangeRequest, onFormChange, onFormChange, onSubmit, onSubmit, processFormSubmission, referenceData, referenceData, setFormView, setSuccessView, showForm, suppressValidation
currentFormObject, formBackingObject, getCommand, getErrorsForNewForm, getFormSessionAttributeName, getFormSessionAttributeName, handleInvalidSubmit, handleRequestInternal, isBindOnNewForm, isFormSubmission, isSessionForm, onBindOnNewForm, onBindOnNewForm, setBindOnNewForm, setSessionForm, showForm, showForm, showNewForm
bindAndValidate, checkCommand, createBinder, createCommand, getBindingErrorProcessor, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, getWebBindingInitializer, initApplicationContext, initBinder, isValidateOnBinding, onBind, onBind, prepareBinder, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, setWebBindingInitializer, suppressBinding, suppressValidation, suppressValidation, useDirectFieldAccess
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
private static final org.apache.commons.logging.Log logger
private boolean mobile
private java.lang.String successUrl
private java.lang.String newUserUrl
public void setMobile(boolean mobile)
public void setSuccessUrl(java.lang.String url)
public void setNewUserUrl(java.lang.String newUserUrl)
protected org.springframework.web.servlet.ModelAndView showForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.validation.BindException errors, java.util.Map controlModel) throws java.lang.Exception
showForm
in class org.springframework.web.servlet.mvc.SimpleFormController
java.lang.Exception
protected void onBindAndValidate(javax.servlet.http.HttpServletRequest request, java.lang.Object command, org.springframework.validation.BindException errors)
onBindAndValidate
in class org.springframework.web.servlet.mvc.BaseCommandController
protected org.springframework.web.servlet.ModelAndView onSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object command, org.springframework.validation.BindException errors) throws java.lang.Exception
onSubmit
in class org.springframework.web.servlet.mvc.SimpleFormController
java.lang.Exception
private org.springframework.web.servlet.ModelAndView performLogin(javax.servlet.http.HttpServletRequest request, java.lang.String username)