类 ParameterizableViewController
- java.lang.Object
- org.springframework.context.support.ApplicationObjectSupport
- org.springframework.web.context.support.WebApplicationObjectSupport
- org.springframework.web.servlet.support.WebContentGenerator
- org.springframework.web.servlet.mvc.AbstractController
- org.springframework.web.servlet.mvc.ParameterizableViewController
- 所有已实现的接口:
Aware,ApplicationContextAware,ServletContextAware,Controller
public class ParameterizableViewController extends AbstractController
Trivial controller that always returns a pre-configured view and optionally sets the response status code. The view and status can be configured using the provided configuration properties.- 作者:
- Rod Johnson, Juergen Hoeller, Keith Donald, Rossen Stoyanchev
字段概要
从类继承的字段 org.springframework.web.servlet.support.WebContentGenerator
HEADER_CACHE_CONTROL, METHOD_GET, METHOD_HEAD, METHOD_POST
从类继承的字段 org.springframework.context.support.ApplicationObjectSupport
logger
构造器概要
构造器 构造器 说明 ParameterizableViewController()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 HttpStatusgetStatusCode()Return the configured HTTP status code ornull.ViewgetView()Return the View object, ornullif we are using a view name to be resolved by the DispatcherServlet via a ViewResolver.StringgetViewName()Return the name of the view to delegate to, ornullif using a View instance.protected ModelAndViewhandleRequestInternal(HttpServletRequest request, HttpServletResponse response)Return a ModelAndView object with the specified view name.booleanisStatusOnly()Whether the request is fully handled within the controller.voidsetStatusCode(HttpStatus statusCode)Configure the HTTP status code that this controller should set on the response.voidsetStatusOnly(boolean statusOnly)The property can be used to indicate the request is considered fully handled within the controller and that no view should be used for rendering.voidsetView(View view)Set a View object for the ModelAndView to return.voidsetViewName(String viewName)Set a view name for the ModelAndView to return, to be resolved by the DispatcherServlet via a ViewResolver.从类继承的方法 org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
从类继承的方法 org.springframework.web.servlet.support.WebContentGenerator
applyCacheControl, applyCacheSeconds,