Passed to a renderer to provide context information
| Type | Name and description |
|---|---|
java.lang.String |
viewName |
| Constructor and description |
|---|
RenderContext
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
MimeType |
getAcceptMimeType()
|
|
java.lang.String |
getActionName()
|
|
Map |
getArguments()
|
|
java.lang.String |
getControllerName()
|
|
java.lang.String |
getControllerNamespace()
|
|
java.util.List |
getExcludes()Which properties should be excluded from rendering
|
|
HttpMethod |
getHttpMethod()
|
|
java.util.List |
getIncludes()Which properties should be included in rendering
|
|
Locale |
getLocale()
|
|
java.lang.String |
getResourcePath()
|
|
java.lang.String |
getViewName()
|
|
Writer |
getWriter()
|
|
void |
setContentType(java.lang.String contentType)Sets the content type of the rendered response
|
|
void |
setModel(Map model)The model to use for the response
|
|
void |
setStatus(HttpStatus status)
|
|
void |
setViewName(java.lang.String viewName)The view to use for the response
|
|
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