类 ResponseCookie.DefaultResponseCookieBuilder
java.lang.Object
cn.taketoday.http.ResponseCookie.DefaultResponseCookieBuilder
- 所有已实现的接口:
ResponseCookie.ResponseCookieBuilder
- 封闭类:
- ResponseCookie
private static class ResponseCookie.DefaultResponseCookieBuilder
extends Object
implements ResponseCookie.ResponseCookieBuilder
Default implementation of
ResponseCookie.ResponseCookieBuilder.-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()Create the HttpCookie.Set the cookie "Domain" attribute.httpOnly(boolean httpOnly) Add the "HttpOnly" attribute to the cookie.private StringinitDomain(String domain) maxAge(long maxAgeSeconds) Variant ofResponseCookie.ResponseCookieBuilder.maxAge(Duration)accepting a value in seconds.Set the cookie "Max-Age" attribute.Set the cookie "Path" attribute.Add the "SameSite" attribute to the cookie.secure(boolean secure) Add the "Secure" attribute to the cookie.Set the cookie value.
-
字段详细资料
-
name
-
value
-
lenient
private final boolean lenient -
maxAge
-
domain
-
path
-
secure
private boolean secure -
httpOnly
private boolean httpOnly -
sameSite
-
-
构造器详细资料
-
DefaultResponseCookieBuilder
-
-
方法详细资料
-
value
从接口复制的说明:ResponseCookie.ResponseCookieBuilderSet the cookie value.- 指定者:
value在接口中ResponseCookie.ResponseCookieBuilder
-
maxAge
从接口复制的说明:ResponseCookie.ResponseCookieBuilderSet the cookie "Max-Age" attribute.A positive value indicates when the cookie should expire relative to the current time. A value of 0 means the cookie should expire immediately. A negative value results in no "Max-Age" attribute in which case the cookie is removed when the browser is closed.
- 指定者:
maxAge在接口中ResponseCookie.ResponseCookieBuilder
-
maxAge
从接口复制的说明:ResponseCookie.ResponseCookieBuilderVariant ofResponseCookie.ResponseCookieBuilder.maxAge(Duration)accepting a value in seconds.- 指定者:
maxAge在接口中ResponseCookie.ResponseCookieBuilder
-
domain
从接口复制的说明:ResponseCookie.ResponseCookieBuilderSet the cookie "Domain" attribute.- 指定者:
domain在接口中ResponseCookie.ResponseCookieBuilder
-
initDomain
-
path
从接口复制的说明:ResponseCookie.ResponseCookieBuilderSet the cookie "Path" attribute.- 指定者:
path在接口中ResponseCookie.ResponseCookieBuilder
-
secure
从接口复制的说明:ResponseCookie.ResponseCookieBuilderAdd the "Secure" attribute to the cookie.- 指定者:
secure在接口中ResponseCookie.ResponseCookieBuilder
-
httpOnly
从接口复制的说明:ResponseCookie.ResponseCookieBuilderAdd the "HttpOnly" attribute to the cookie. -
sameSite
从接口复制的说明:ResponseCookie.ResponseCookieBuilderAdd the "SameSite" attribute to the cookie.This limits the scope of the cookie such that it will only be attached to same site requests if
"Strict"or cross-site requests if"Lax".- 指定者:
sameSite在接口中ResponseCookie.ResponseCookieBuilder- 另请参阅:
-
build
从接口复制的说明:ResponseCookie.ResponseCookieBuilderCreate the HttpCookie.- 指定者:
build在接口中ResponseCookie.ResponseCookieBuilder
-