| Modifier and Type | Field and Description |
|---|---|
| private HttpStatusCode | |
| private boolean | |
| private Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public HttpStatusCode | |
| public View | getView()
Return the View object, or |
| public String | |
| protected ModelAndView | handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
Implements abstract org. Return a ModelAndView object with the specified view name. |
| public boolean | |
| public void | setStatusCode(HttpStatusCode statusCode)
Configure the HTTP status code that this controller should set on the response. |
| public void | setStatusOnly(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. |
| public void | |
| public void | setViewName(String viewName)
Set a view name for the ModelAndView to return, to be resolved by the DispatcherServlet via a ViewResolver. |
| public String |
| statusCode | back to summary |
|---|---|
| private HttpStatusCode statusCode
| |
| statusOnly | back to summary |
|---|---|
| private boolean statusOnly | |
| view | back to summary |
|---|---|
| private Object view
| |
| ParameterizableViewController | back to summary |
|---|---|
| public ParameterizableViewController() | |
| formatStatusAndView | back to summary |
|---|---|
| private String formatStatusAndView() | |
| getStatusCode | back to summary |
|---|---|
| public HttpStatusCode getStatusCode() Return the configured HTTP status code or
| |
| getView | back to summary |
|---|---|
| public View getView() Return the View object, or
| |
| getViewName | back to summary |
|---|---|
| public String getViewName() Return the name of the view to delegate to, or
| |
| handleRequestInternal | back to summary |
|---|---|
| protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception Implements abstract org. Return a ModelAndView object with the specified view name. The content of the
| |
| isStatusOnly | back to summary |
|---|---|
| public boolean isStatusOnly() Whether the request is fully handled within the controller. | |
| setStatusCode | back to summary |
|---|---|
| public void setStatusCode(HttpStatusCode statusCode) Configure the HTTP status code that this controller should set on the response. When a "redirect:" prefixed view name is configured, there is no need
to set this property since RedirectView will do that. However this property
may still be used to override the 3xx status code of If the status code is 204 and no view is configured, the request is fully handled within the controller.
| |
| setStatusOnly | back to summary |
|---|---|
| public void setStatusOnly(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.
Useful in combination with By default this is set to
| |
| setView | back to summary |
|---|---|
| public void setView(View view) Set a View object for the ModelAndView to return. Will override any pre-existing view name or View.
| |
| setViewName | back to summary |
|---|---|
| public void setViewName(String viewName) Set a view name for the ModelAndView to return, to be resolved by the DispatcherServlet via a ViewResolver. Will override any pre-existing view name or View. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |