|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DelegatedController
This class holds the interface for a class to which controller logic will be delegated. The platform controllers, running within the Spring application context and registered in the springmvc-servlet.xml will delegate the methods contained by this interface to the class implementing the interface. A class implementing this interface will never run inside the Spring application context but controller methods will be delegated by the platform controllers that do.
| Method Summary | |
|---|---|
void |
addValidator(org.springframework.validation.Validator validator)
Set the Validators for this controller. |
java.lang.Object |
formBackingObject(javax.servlet.http.HttpServletRequest request)
Returns the form backing object to be used for this controller |
java.util.LinkedHashMap<DelegatedController,FormBackingObject> |
getControllerDelegationMap()
Return the map of delegated controllers of this controller. |
EditView |
getEditView()
Returns the default EditView that should be used for form display. |
EditView |
getEditViewByValue(java.lang.String value)
Returns the indicated EditView that should be used for form(part) display. |
java.util.ArrayList<java.lang.String> |
getResourceBaseNames()
Return the resource base names for this controller |
org.springframework.validation.Validator[] |
getValidators()
Return the Validators for this controller. |
void |
initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
Callback for additional binder initialisations. |
void |
initialize(javax.servlet.http.HttpServletRequest request)
Called by the framework to initialize the controller |
void |
onBind(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors)
Callback for custom post-processing in terms of binding. |
void |
onBindAndValidate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors)
Callback for custom post-processing in terms of binding and validation. |
void |
onSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors,
org.springframework.web.servlet.ModelAndView modelAndView)
Callback for the data processing of the form submissed data. |
java.util.Map<java.lang.String,java.lang.Object> |
referenceData(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.Errors errors)
Callback to createa a reference data map for the given request and command. |
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)
Callback for returning the model and view for a GET request. |
| Method Detail |
|---|
void initialize(javax.servlet.http.HttpServletRequest request)
request -
java.lang.Object formBackingObject(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
request - current http request
javax.servlet.ServletException - in case of errors
void initBinder(javax.servlet.http.HttpServletRequest request,
org.springframework.web.bind.ServletRequestDataBinder binder)
throws java.lang.Exception
request - current HTTP requestbinder - binder instance
java.lang.Exception - in case of invalid state or arguments
void onBind(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors)
throws java.lang.Exception
request - current HTTP requestcommand - the command object to perform further binding onerrors - validation and binder errors holder,
allowing for additional custom registration of binding errors
java.lang.Exception - in case of invalid state or arguments
void onBindAndValidate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors)
throws java.lang.Exception
request - current HTTP requestcommand - the command object, still allowing for further bindingerrors - errors holder, allowing for additional custom validation errors
java.lang.Exception - in case of invalid state or arguments
void onSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors,
org.springframework.web.servlet.ModelAndView modelAndView)
throws java.lang.Exception
request - current servlet requestresponse - current servlet responsecommand - command object with request parameters bound onto iterrors - errors holder without errors (subclass can add errors if it
wants to)modelAndView - model and view of the original main spring controller which handles the request
java.lang.Exception - in case of errors
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
request - current servlet requestresponse - current servlet responseerrors - errors holder without errors (subclass can add errors if it wants to)controlModel - Current model of the controller
java.lang.Exception - in case of errors
java.util.Map<java.lang.String,java.lang.Object> referenceData(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.Errors errors)
throws java.lang.Exception
request - current HTTP requestcommand - command objecterrors - Errors holder
null if none
java.lang.Exception - in case of invalid state or argumentsModelAndViewEditView getEditView()
EditView getEditViewByValue(java.lang.String value)
value - Value of the view that should be used
void addValidator(org.springframework.validation.Validator validator)
validators - Array of validators to setorg.springframework.validation.Validator[] getValidators()
java.util.ArrayList<java.lang.String> getResourceBaseNames()
java.util.LinkedHashMap<DelegatedController,FormBackingObject> getControllerDelegationMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||