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, suppressValidationcurrentFormObject, formBackingObject, getCommand, getErrorsForNewForm, getFormSessionAttributeName, getFormSessionAttributeName, handleInvalidSubmit, handleRequestInternal, isBindOnNewForm, isFormSubmission, isSessionForm, onBindOnNewForm, onBindOnNewForm, setBindOnNewForm, setSessionForm, showForm, showForm, showNewFormbindAndValidate, 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, useDirectFieldAccesshandleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprivate 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.SimpleFormControllerjava.lang.Exceptionprotected void onBindAndValidate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors)
onBindAndValidate in class org.springframework.web.servlet.mvc.BaseCommandControllerprotected 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.SimpleFormControllerjava.lang.Exceptionprivate org.springframework.web.servlet.ModelAndView performLogin(javax.servlet.http.HttpServletRequest request,
java.lang.String username)