站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

Uses of Class org.springframework.web.servlet.ModelAndView (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

Uses of Class
org.springframework.web.servlet.ModelAndView

Packages that use ModelAndView
org.springframework.test.web Helper classes for unit tests based on Spring's web support. 
org.springframework.web.servlet Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework. 
org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations. 
org.springframework.web.servlet.mvc Standard controller implementations for the servlet MVC framework that comes with Spring. 
org.springframework.web.servlet.mvc.multiaction Package allowing MVC Controller implementations to handle requests at method rather than class level. 
org.springframework.web.servlet.mvc.throwaway Throwaway command controllers are a WebWork/Maverick-style alternative to Spring's default Servlet/Struts-style Controller approach. 
 

Uses of ModelAndView in org.springframework.test.web
 

Methods in org.springframework.test.web with parameters of type ModelAndView
protected  Object AbstractModelAndViewTests.assertAndReturnModelAttributeOfType(ModelAndView mav, Object key, Class type)
          Checks whether the given model key exists and checks it type, based on the given type.
protected  void AbstractModelAndViewTests.assertCompareListModelAttribute(ModelAndView mav, Object key, List assertionList)
          Compare each individual entry in a list, not sorting the lists first.
protected  void AbstractModelAndViewTests.assertModelAttributeAvailable(ModelAndView mav, Object key)
          Assert whether or not a model attribute is available.
protected  void AbstractModelAndViewTests.assertModelAttributeValue(ModelAndView mav, Object key, Object value)
          Compare a given Object to the value from the model bound under the given key.
protected  void AbstractModelAndViewTests.assertModelAttributeValues(ModelAndView mav, Map assertionModel)
          Inspect the given model to see if all elements in the model appear and are equal
protected  void AbstractModelAndViewTests.assertSortAndCompareListModelAttribute(ModelAndView mav, Object key, List assertionList, Comparator comp)
          Compare each individual entry in a list after having sorted both lists (optionally using a comparator).
protected  void AbstractModelAndViewTests.assertViewName(ModelAndView mav, String name)
          Check to see if the view name in the ModelAndView matches the given String.
 

Uses of ModelAndView in org.springframework.web.servlet
 

Methods in org.springframework.web.servlet that return ModelAndView
 ModelAndView ModelAndView.addAllObjects(Map modelMap)
          Add all entries contained in the provided map to the model.
 ModelAndView ModelAndView.addObject(Object modelObject)
          Add an object to the model using parameter name generation.
 ModelAndView ModelAndView.addObject(String modelName, Object modelObject)
          Add an object to the model.
 ModelAndView ModelAndViewDefiningException.getModelAndView()
          Return the ModelAndView that this exception contains for forwarding to.
 ModelAndView HandlerAdapter.handle(HttpServletRequest request, HttpServletResponse response, Object handler)
          Use the given handler to handle this request.
protected  ModelAndView DispatcherServlet.processHandlerException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
          Determine an error ModelAndView via the registered HandlerExceptionResolvers.
 ModelAndView HandlerExceptionResolver.resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
          Try to resolve the given exception that got thrown during on handler execution, returning a ModelAndView that represents a specific error page if appropriate.
 

Methods in org.springframework.web.servlet with parameters of type ModelAndView
 void HandlerInterceptor.postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)
          Intercept the execution of a handler.
protected  void DispatcherServlet.render(ModelAndView mv, HttpServletRequest request, HttpServletResponse response)
          Render the given ModelAndView.
 

Constructors in org.springframework.web.servlet with parameters of type ModelAndView
ModelAndViewDefiningException(ModelAndView modelAndView)
          Create new ModelAndViewDefiningException with the given ModelAndView, typically representing a specific error page.
 

Uses of ModelAndView in org.springframework.web.servlet.handler
 

Methods in org.springframework.web.servlet.handler that return ModelAndView
protected  ModelAndView SimpleMappingExceptionResolver.doResolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
          Actually resolve the given exception that got thrown during on handler execution, returning a ModelAndView that represents a specific error page if appropriate.
protected  ModelAndView SimpleMappingExceptionResolver.getModelAndView(String viewName, Exception ex)
          Return a ModelAndView for the given view name and exception.
protected  ModelAndView SimpleMappingExceptionResolver.getModelAndView(String viewName, Exception ex, HttpServletRequest request)
          Return a ModelAndView for the given request, view name and exception.
 ModelAndView SimpleServletHandlerAdapter.handle(HttpServletRequest request, HttpServletResponse response, Object handler)
           
 ModelAndView SimpleMappingExceptionResolver.resolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
          Checks whether this resolver is supposed to apply (i.e. the handler matches in case of "mappedHandlers" having been specified), then delegates to the SimpleMappingExceptionResolver.doResolveException(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object, java.lang.Exception) template method.
 

Methods in org.springframework.web.servlet.handler with parameters of type ModelAndView
 void WebRequestHandlerInterceptorAdapter.postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)
           
 void HandlerInterceptorAdapter.postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)
          This implementation is empty.
 

Uses of ModelAndView in org.springframework.web.servlet.mvc
 

Methods in org.springframework.web.servlet.mvc that return ModelAndView
 ModelAndView SimpleControllerHandlerAdapter.handle(HttpServletRequest request, HttpServletResponse response, Object handler)
           
 ModelAndView HttpRequestHandlerAdapter.handle(HttpServletRequest request, HttpServletResponse response, Object handler)
           
protected abstract  ModelAndView AbstractCommandController.handle(HttpServletRequest request, HttpServletResponse 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.
protected  ModelAndView AbstractWizardFormController.handleInvalidSubmit(HttpServletRequest request, HttpServletResponse response)
          Handle an invalid submit request, e.g. when in session form mode but no form object was found in the session (like in case of an invalid resubmit by the browser).
protected  ModelAndView AbstractFormController.handleInvalidSubmit(HttpServletRequest request, HttpServletResponse response)
          Handle an invalid submit request, e.g. when in session form mode but no form object was found in the session (like in case of an invalid resubmit by the browser).
 ModelAndView Controller.handleRequest(HttpServletRequest request, HttpServletResponse response)
          Process the request and return a ModelAndView object which the DispatcherServlet will render.
 ModelAndView AbstractController.handleRequest(HttpServletRequest request, HttpServletResponse response)
           
protected  ModelAndView AbstractCommandController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
           
protected  ModelAndView ServletWrappingController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
          Invoke the the wrapped Servlet instance.
protected  ModelAndView ServletForwardingController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
           
protected  ModelAndView ParameterizableViewController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
          Return a ModelAndView object with the specified view name.
protected  ModelAndView AbstractUrlViewController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
          Retrieves the URL path to use for lookup and delegates to AbstractUrlViewController.getViewNameForRequest(javax.servlet.http.HttpServletRequest).
protected  ModelAndView AbstractFormController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
          Handles two cases: form submissions and showing a new form.
protected abstract  ModelAndView AbstractController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
          Template method.
protected  ModelAndView CancellableFormController.onCancel(HttpServletRequest request, HttpServletResponse response, Object command)
          Callback method for handling a cancel request.
protected  ModelAndView CancellableFormController.onCancel(Object command)
          Simple onCancel version.
protected  ModelAndView SimpleFormController.onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
          Submit callback with all parameters.
protected  ModelAndView SimpleFormController.onSubmit(Object command)
          Simplest onSubmit variant.
protected  ModelAndView SimpleFormController.onSubmit(Object command, BindException errors)
          Simpler onSubmit variant.
protected  ModelAndView AbstractWizardFormController.processCancel(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
          Template method for processing the cancel action of this wizard.
protected abstract  ModelAndView AbstractWizardFormController.processFinish(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
          Template method for processing the final action of this wizard.
protected  ModelAndView SimpleFormController.processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
          This implementation calls SimpleFormController.showForm(HttpServletRequest, HttpServletResponse, BindException) in case of errors, and delegates to the full SimpleFormController.onSubmit(HttpServletRequest, HttpServletResponse, Object, BindException)'s variant else.
protected  ModelAndView AbstractWizardFormController.processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
          Apply wizard workflow: finish, cancel, page change.
protected abstract  ModelAndView AbstractFormController.processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
          Process form submission request.
protected  ModelAndView CancellableFormController.processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors)
          This implementation first checks to see if the incoming is a cancel request, through a call to CancellableFormController.isCancelRequest(javax.servlet.http.HttpServletRequest).
protected  ModelAndView AbstractFormController.showForm(HttpServletRequest request, BindException errors, String viewName)
          Prepare model and view for the given form, including reference and errors.
protected  ModelAndView AbstractFormController.showForm(HttpServletRequest request, BindException errors, String viewName, Map controlModel)
          Prepare model and view for the given form, including reference and errors, adding a controller-specific control model.
protected  ModelAndView SimpleFormController.showForm(HttpServletRequest request, HttpServletResponse response, BindException errors)
          This implementation shows the configured form view, delegating to the analogous SimpleFormController.showForm(HttpServletRequest, HttpServletResponse, BindException, Map) variant with a "controlModel" argument.
protected  ModelAndView AbstractWizardFormController.showForm(HttpServletRequest request, HttpServletResponse response, BindException errors)
          Show first page as form view.
protected abstract  ModelAndView AbstractFormController.showForm(HttpServletRequest request, HttpServletResponse response, BindException errors)
          Prepare the form model and view, including reference and error data.
protected  ModelAndView SimpleFormController.showForm(HttpServletRequest request, HttpServletResponse response, BindException errors, Map controlModel)
          This implementation shows the configured form view.
protected  ModelAndView AbstractFormController.showNewForm(HttpServletRequest request, HttpServletResponse response)
          Show a new form.
protected  ModelAndView AbstractWizardFormController.showPage(HttpServletRequest request, BindException errors, int page)
          Prepare the form model and view, including reference and error data, for the given page.
 

Methods in org.springframework.web.servlet.mvc with parameters of type ModelAndView
 void WebContentInterceptor.postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)
          This implementation is empty.
 

Uses of ModelAndView in org.springframework.web.servlet.mvc.multiaction
 

Methods in org.springframework.web.servlet.mvc.multiaction that return ModelAndView
protected  ModelAndView MultiActionController.handleNoSuchRequestHandlingMethod(NoSuchRequestHandlingMethodException ex, HttpServletRequest request, HttpServletResponse response)
          Handle the case where no request handler method was found.
protected  ModelAndView MultiActionController.handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
          Determine a handler method and invoke it.
protected  ModelAndView MultiActionController.invokeNamedMethod(String methodName, HttpServletRequest request, HttpServletResponse response)
          Invokes the named method.
 

Uses of ModelAndView in org.springframework.web.servlet.mvc.throwaway
 

Methods in org.springframework.web.servlet.mvc.throwaway that return ModelAndView
 ModelAndView ThrowawayController.execute()
          Execute this controller according to its bean properties.
 ModelAndView ThrowawayControllerHandlerAdapter.handle(HttpServletRequest request, HttpServletResponse response, Object handler)
          This implementation binds request parameters to the ThrowawayController instance and then calls execute on it.
 


The Spring Framework

Copyright © 2002-2007 The Spring Framework.