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