interface RenderContext
Passed to a renderer to provide context information
Type Params | Return Type | Name and description |
---|---|---|
|
abstract MimeType |
getAcceptMimeType()
|
|
abstract String |
getActionName()
|
|
abstract Map<String, Object> |
getArguments()
|
|
abstract String |
getControllerName()
|
|
abstract String |
getControllerNamespace()
|
|
abstract String |
getDefaultViewName()
|
|
abstract List<String> |
getExcludes() Which properties should be excluded from rendering |
|
abstract HttpMethod |
getHttpMethod()
|
|
abstract List<String> |
getIncludes() Which properties should be included in rendering |
|
abstract Locale |
getLocale()
|
|
abstract String |
getResourcePath()
|
|
abstract String |
getViewName()
|
|
abstract Writer |
getWriter()
|
|
abstract void |
setContentType(String contentType) Sets the content type of the rendered response |
|
abstract void |
setModel(Map model) The model to use for the response |
|
abstract void |
setStatus(HttpStatus status)
|
|
abstract void |
setViewName(String viewName) The view to use for the response |
|
abstract boolean |
wasWrittenTo() Returns true if the getWriter() method was called |
Which properties should be excluded from rendering
Which properties should be included in rendering
Sets the content type of the rendered response
contentType
- The content typeThe model to use for the response
model
- The model
status
- The status to setThe view to use for the response
viewName
- The view nameReturns true if the getWriter() method was called