Interface Rendering.Builder<B extends Rendering.Builder<B>>
- Type Parameters:
B
- a self reference to the builder type
- All Known Subinterfaces:
Rendering.RedirectBuilder
- Enclosing interface:
- Rendering
public static interface Rendering.Builder<B extends Rendering.Builder<B>>
Defines a builder forRendering
.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rendering
build()
Builder theRendering
instance.B
header(String headerName, String... headerValues)
Specify a header to add to the response.B
headers(HttpHeaders headers)
Specify headers to add to the response.B
model(Map<String,?> map)
Add the given attributes to the model.B
modelAttribute(Object value)
Add an attribute to the model using agenerated name
.B
modelAttribute(String name, Object value)
Add the given model attribute with the supplied name.B
modelAttributes(Object... values)
Add all given attributes to the model usinggenerated names
.B
status(HttpStatus status)
Specify the status to use for the response.
Method Detail
modelAttribute
B modelAttribute(String name, Object value)
Add the given model attribute with the supplied name.- See Also:
Model.addAttribute(String, Object)
modelAttribute
B modelAttribute(Object value)
Add an attribute to the model using agenerated name
.- See Also:
Model.addAttribute(Object)
modelAttributes
B modelAttributes(Object... values)
Add all given attributes to the model usinggenerated names
.- See Also:
Model.addAllAttributes(Collection)
model
B model(Map<String,?> map)
Add the given attributes to the model.- See Also:
Model.addAllAttributes(Map)
status
B status(HttpStatus status)
Specify the status to use for the response.
headers
B headers(HttpHeaders headers)
Specify headers to add to the response.