@Controller(value="blRegisterCustomerController") @RequestMapping(value="/registerCustomer") public class RegisterCustomerController extends Object
Modifier and Type | Field and Description |
---|---|
protected ChallengeQuestionService |
challengeQuestionService |
protected CustomerService |
customerService |
protected String |
displayRegistrationFormView |
protected LoginService |
loginService |
protected RegisterCustomerValidator |
registerCustomerValidator |
protected String |
registrationErrorView |
protected String |
registrationSuccessView |
Constructor and Description |
---|
RegisterCustomerController() |
Modifier and Type | Method and Description |
---|---|
List<ChallengeQuestion> |
getChallengeQuestions() |
String |
getDisplayRegistrationFormView() |
RegisterCustomerValidator |
getRegisterCustomerValidator() |
String |
getRegistrationErrorView() |
String |
getRegistrationSuccessView() |
void |
initBinder(org.springframework.web.bind.WebDataBinder binder) |
RegisterCustomerForm |
initCustomerRegistrationForm() |
String |
registerCustomer() |
org.springframework.web.servlet.ModelAndView |
registerCustomer(RegisterCustomerForm registerCustomerForm,
org.springframework.validation.BindingResult errors,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
registerCustomerSuccess() |
void |
setDisplayRegistrationFormView(String displayRegistrationFormView) |
void |
setRegisterCustomerValidator(RegisterCustomerValidator registerCustomerValidator) |
void |
setRegistrationErrorView(String registrationErrorView) |
void |
setRegistrationSuccessView(String registrationSuccessView) |
protected String displayRegistrationFormView
protected String registrationErrorView
protected String registrationSuccessView
protected CustomerService customerService
protected RegisterCustomerValidator registerCustomerValidator
protected ChallengeQuestionService challengeQuestionService
protected LoginService loginService
@RequestMapping(value="registerCustomer", method=GET) public String registerCustomer()
@RequestMapping(value="registerCustomer", method=POST) public org.springframework.web.servlet.ModelAndView registerCustomer(@ModelAttribute(value="registerCustomerForm") RegisterCustomerForm registerCustomerForm, org.springframework.validation.BindingResult errors, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
@RequestMapping(value="registerCustomerSuccess", method=GET) public String registerCustomerSuccess()
@ModelAttribute(value="registerCustomerForm") public RegisterCustomerForm initCustomerRegistrationForm()
@ModelAttribute(value="challengeQuestions") public List<ChallengeQuestion> getChallengeQuestions()
public String getRegistrationErrorView()
public void setRegistrationErrorView(String registrationErrorView)
public String getRegistrationSuccessView()
public void setRegistrationSuccessView(String registrationSuccessView)
public RegisterCustomerValidator getRegisterCustomerValidator()
public void setRegisterCustomerValidator(RegisterCustomerValidator registerCustomerValidator)
public String getDisplayRegistrationFormView()
public void setDisplayRegistrationFormView(String displayRegistrationFormView)
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
Copyright © 2014. All rights reserved.