接口 Rendering.Builder<B extends Rendering.Builder<B>>
- 类型参数:
B
- a self reference to the builder type
- 所有已知子接口:
Rendering.RedirectBuilder
- 封闭接口:
- Rendering
public static interface Rendering.Builder<B extends Rendering.Builder<B>>
Defines a builder forRendering
.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.
方法详细资料
modelAttribute
B modelAttribute(String name, Object value)
Add the given model attribute with the supplied name.
modelAttribute
B modelAttribute(Object value)
Add an attribute to the model using agenerated name
.
modelAttributes
B modelAttributes(Object... values)
Add all given attributes to the model usinggenerated names
.
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.