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 for
Rendering
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theRendering
instance.Specify a header to add to the response.headers
(HttpHeaders headers) Specify headers to add to the response.Add the given attributes to the model.modelAttribute
(Object value) Add an attribute to the model using agenerated name
.modelAttribute
(String name, Object value) Add the given model attribute with the supplied name.modelAttributes
(Object... values) Add all given attributes to the model usinggenerated names
.status
(HttpStatusCode status) Specify the status to use for the response.
-
Method Details
-
modelAttribute
Add the given model attribute with the supplied name.- See Also:
-
modelAttribute
Add an attribute to the model using agenerated name
.- See Also:
-
modelAttributes
Add all given attributes to the model usinggenerated names
.- See Also:
-
model
Add the given attributes to the model.- See Also:
-
status
Specify the status to use for the response. -
header
Specify a header to add to the response. -
headers
Specify headers to add to the response. -
build
Rendering build()Build theRendering
instance.
-