Class ViewControllerRegistration
java.lang.Object
org.springframework.web.servlet.config.annotation.ViewControllerRegistration
Assist with the registration of a single view controller.
- Since:
- 3.1
- Author:
- Rossen Stoyanchev, Keith Donald
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected Stringprotected ParameterizableViewControllerprotected voidsetApplicationContext(ApplicationContext applicationContext) setStatusCode(HttpStatusCode statusCode) Set the status code to set on the response.voidsetViewName(String viewName) Set the view name to return.
- 
Constructor Details- 
ViewControllerRegistration
 
- 
- 
Method Details- 
setStatusCodeSet the status code to set on the response. Optional.If not set the response status will be 200 (OK). 
- 
setViewNameSet the view name to return. Optional.If not specified, the view controller will return nullas the view name in which case the configuredRequestToViewNameTranslatorwill select the view name. TheDefaultRequestToViewNameTranslatorfor example translates "/foo/bar" to "foo/bar".- See Also:
 
- 
setApplicationContext
- 
getUrlPath
- 
getViewController
 
-