类 ModelAndViewRenderingResponseBuilder
java.lang.Object
cn.taketoday.web.handler.function.ModelAndViewRenderingResponseBuilder
- 所有已实现的接口:
RenderingResponse.ViewBuilder
final class ModelAndViewRenderingResponseBuilder
extends Object
implements RenderingResponse.ViewBuilder
- 从以下版本开始:
- 4.0 2023/7/28 22:24
- 作者:
- Harry Yang
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final cn.taketoday.util.LinkedMultiValueMap<String,HttpCookie> private final HttpHeadersprivate final ModelAndViewprivate HttpStatusCode -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()Build the response.cookie(HttpCookie cookie) Add the given cookie to the response.cookies(Consumer<cn.taketoday.util.MultiValueMap<String, HttpCookie>> cookiesConsumer) Manipulate this response's cookies with the given consumer.Add the given header value(s) under the given name.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this response's headers with the given consumer.status(int status) Set the HTTP status.status(HttpStatusCode status) Set the HTTP status.
-
字段详细资料
-
modelAndView
-
status
-
headers
-
cookies
-
-
构造器详细资料
-
ModelAndViewRenderingResponseBuilder
-
-
方法详细资料
-
status
从接口复制的说明:RenderingResponse.ViewBuilderSet the HTTP status.- 指定者:
status在接口中RenderingResponse.ViewBuilder- 参数:
status- the response status- 返回:
- this builder
-
status
从接口复制的说明:RenderingResponse.ViewBuilderSet the HTTP status.- 指定者:
status在接口中RenderingResponse.ViewBuilder- 参数:
status- the response status- 返回:
- this builder
-
cookie
从接口复制的说明:RenderingResponse.ViewBuilderAdd the given cookie to the response.- 指定者:
cookie在接口中RenderingResponse.ViewBuilder- 参数:
cookie- the cookie to add- 返回:
- this builder
-
cookies
public RenderingResponse.ViewBuilder cookies(Consumer<cn.taketoday.util.MultiValueMap<String, HttpCookie>> cookiesConsumer) 从接口复制的说明:RenderingResponse.ViewBuilderManipulate this response's cookies with the given consumer. The cookies provided to the consumer are "live", so that the consumer can be used to overwrite existing cookies, remove cookies, or use any of the otherMultiValueMapmethods.- 指定者:
cookies在接口中RenderingResponse.ViewBuilder- 参数:
cookiesConsumer- a function that consumes the cookies- 返回:
- this builder
-
header
从接口复制的说明:RenderingResponse.ViewBuilderAdd the given header value(s) under the given name.- 指定者:
header在接口中RenderingResponse.ViewBuilder- 参数:
headerName- the header nameheaderValues- the header value(s)- 返回:
- this builder
- 另请参阅:
-
headers
从接口复制的说明:RenderingResponse.ViewBuilderManipulate this response's headers with the given consumer. The headers provided to the consumer are "live", so that the consumer can be used to overwrite existing header values, remove values, or use any of the otherHttpHeadersmethods.- 指定者:
headers在接口中RenderingResponse.ViewBuilder- 参数:
headersConsumer- a function that consumes theHttpHeaders- 返回:
- this builder
-
build
从接口复制的说明:RenderingResponse.ViewBuilderBuild the response.- 指定者:
build在接口中RenderingResponse.ViewBuilder- 返回:
- the built response
-