| org.springframework.web.portlet.mvc.AbstractController org.springframework.web.portlet.mvc.BaseCommandController org.springframework.web.portlet.mvc.AbstractCommandController
Method Summary | |
protected String | getCommandInSessionParameterName() Return the name of the render parameter that indicates there
is a valid command (and errors) object in the session. | abstract protected void | handleAction(ActionRequest request, ActionResponse response, Object command, BindException errors) Template method for request handling, providing a populated and validated instance
of the command class, and an Errors object containing binding and validation errors. | final protected void | handleActionRequestInternal(ActionRequest request, ActionResponse response) | abstract protected ModelAndView | handleRender(RenderRequest request, RenderResponse response, Object command, BindException errors) Template method for render request handling, providing a populated and validated instance
of the command class, and an Errors object containing binding and validation errors. | final protected ModelAndView | handleRenderRequestInternal(RenderRequest request, RenderResponse response) | final protected boolean | isCommandInSession(RenderRequest request) Determine if there is a valid command (and errors) object in the
session for this render request. | final protected void | setCommandInSession(ActionResponse response) Set the action response parameter that indicates there is a
command (and errors) object in the session for the render phase. |
AbstractCommandController | public AbstractCommandController()(Code) | | Create a new AbstractCommandController.
|
AbstractCommandController | public AbstractCommandController(Class commandClass)(Code) | | Create a new AbstractCommandController.
Parameters: commandClass - class of the command bean |
AbstractCommandController | public AbstractCommandController(Class commandClass, String commandName)(Code) | | Create a new AbstractCommandController.
Parameters: commandClass - class of the command bean Parameters: commandName - name of the command bean |
getCommandInSessionParameterName | protected String getCommandInSessionParameterName()(Code) | | Return the name of the render parameter that indicates there
is a valid command (and errors) object in the session.
the name of the render parameter See Also: javax.portlet.RenderRequest.getParameter |
handleAction | abstract protected void handleAction(ActionRequest request, ActionResponse response, Object command, BindException errors) throws Exception(Code) | | Template method for request handling, providing a populated and validated instance
of the command class, and an Errors object containing binding and validation errors.
Call errors.getModel() to populate the ModelAndView model
with the command and the Errors instance, under the specified command name,
as expected by the "spring:bind" tag.
Parameters: request - current action request Parameters: response - current action response Parameters: command - the populated command object Parameters: errors - validation errors holder See Also: org.springframework.validation.Errors See Also: org.springframework.validation.BindException.getModel |
handleActionRequestInternal | final protected void handleActionRequestInternal(ActionRequest request, ActionResponse response) throws Exception(Code) | | |
handleRender | abstract protected ModelAndView handleRender(RenderRequest request, RenderResponse response, Object command, BindException errors) throws Exception(Code) | | Template method for render request handling, providing a populated and validated instance
of the command class, and an Errors object containing binding and validation errors.
Call errors.getModel() to populate the ModelAndView model
with the command and the Errors instance, under the specified command name,
as expected by the "spring:bind" tag.
Parameters: request - current render request Parameters: response - current render response Parameters: command - the populated command object Parameters: errors - validation errors holder a ModelAndView to render, or null if handled directly See Also: org.springframework.validation.Errors See Also: org.springframework.validation.BindException.getModel |
handleRenderRequestInternal | final protected ModelAndView handleRenderRequestInternal(RenderRequest request, RenderResponse response) throws Exception(Code) | | |
Fields inherited from org.springframework.web.portlet.mvc.BaseCommandController | final public static String DEFAULT_COMMAND_NAME(Code)(Java Doc)
|
Methods inherited from org.springframework.web.portlet.mvc.BaseCommandController | final protected PortletRequestDataBinder bindAndValidate(PortletRequest request, Object command) throws Exception(Code)(Java Doc) final protected boolean checkCommand(Object command)(Code)(Java Doc) protected PortletRequestDataBinder createBinder(PortletRequest request, Object command) throws Exception(Code)(Java Doc) final protected Object createCommand() throws Exception(Code)(Java Doc) final public BindingErrorProcessor getBindingErrorProcessor()(Code)(Java Doc) protected Object getCommand(PortletRequest request) throws Exception(Code)(Java Doc) final public Class getCommandClass()(Code)(Java Doc) final public String getCommandName()(Code)(Java Doc) final public MessageCodesResolver getMessageCodesResolver()(Code)(Java Doc) final public PropertyEditorRegistrar[] getPropertyEditorRegistrars()(Code)(Java Doc) final protected Object getRenderCommand(RenderRequest request) throws PortletException(Code)(Java Doc) protected String getRenderCommandSessionAttributeName()(Code)(Java Doc) final protected BindException getRenderErrors(RenderRequest request) throws PortletException(Code)(Java Doc) protected String getRenderErrorsSessionAttributeName()(Code)(Java Doc) final public Validator getValidator()(Code)(Java Doc) final public Validator[] getValidators()(Code)(Java Doc) protected void initApplicationContext()(Code)(Java Doc) protected void initBinder(PortletRequest request, PortletRequestDataBinder binder) throws Exception(Code)(Java Doc) final public boolean isValidateOnBinding()(Code)(Java Doc) protected void onBind(PortletRequest request, Object command, BindException errors) throws Exception(Code)(Java Doc) protected void onBind(PortletRequest request, Object command) throws Exception(Code)(Java Doc) protected void onBindAndValidate(PortletRequest request, Object command, BindException errors) throws Exception(Code)(Java Doc) final protected void prepareBinder(PortletRequestDataBinder binder)(Code)(Java Doc) final public void setBindingErrorProcessor(BindingErrorProcessor bindingErrorProcessor)(Code)(Java Doc) final public void setCommandClass(Class commandClass)(Code)(Java Doc) final public void setCommandName(String commandName)(Code)(Java Doc) final public void setMessageCodesResolver(MessageCodesResolver messageCodesResolver)(Code)(Java Doc) final public void setPropertyEditorRegistrar(PropertyEditorRegistrar propertyEditorRegistrar)(Code)(Java Doc) final public void setPropertyEditorRegistrars(PropertyEditorRegistrar[] propertyEditorRegistrars)(Code)(Java Doc) final protected void setRenderCommandAndErrors(ActionRequest request, Object command, BindException errors) throws Exception(Code)(Java Doc) final public void setValidateOnBinding(boolean validateOnBinding)(Code)(Java Doc) final public void setValidator(Validator validator)(Code)(Java Doc) final public void setValidators(Validator[] validators)(Code)(Java Doc) protected boolean suppressBinding(PortletRequest request)(Code)(Java Doc) protected boolean suppressValidation(PortletRequest request)(Code)(Java Doc) protected boolean useDirectFieldAccess()(Code)(Java Doc)
|
|
|