接口的使用
cn.taketoday.http.ResponseCookie.ResponseCookieBuilder
程序包
说明
Contains a basic abstraction over client/server-side HTTP.
-
cn.taketoday.http中ResponseCookie.ResponseCookieBuilder的使用
修饰符和类型方法说明Set the cookie "Domain" attribute.Factory method to obtain a builder for a server-defined cookie, given its name only, and where the value as well as other attributes can be set later via builder methods.Factory method to obtain a builder for a server-defined cookie that starts with a name-value pair and may also include attributes.ResponseCookie.fromClientResponse(String name, String value) Factory method to obtain a builder for a server-defined cookie.ResponseCookie.DefaultResponseCookieBuilder.httpOnly(boolean httpOnly) ResponseCookie.ResponseCookieBuilder.httpOnly(boolean httpOnly) Add the "HttpOnly" attribute to the cookie.ResponseCookie.DefaultResponseCookieBuilder.maxAge(long maxAgeSeconds) ResponseCookie.ResponseCookieBuilder.maxAge(long maxAgeSeconds) Variant ofmaxAge(Duration)accepting a value in seconds.Set the cookie "Max-Age" attribute.ResponseCookie.mutate()Return a builder pre-populated with values from"this"instance.Set the cookie "Path" attribute.Add the "SameSite" attribute to the cookie.ResponseCookie.DefaultResponseCookieBuilder.secure(boolean secure) ResponseCookie.ResponseCookieBuilder.secure(boolean secure) Add the "Secure" attribute to the cookie.Set the cookie value. -
cn.taketoday.web.servlet中ResponseCookie.ResponseCookieBuilder的使用
修饰符和类型方法说明protected ResponseCookie.ResponseCookieBuilderCookieGenerator.createCookie(String cookieValue) Create a cookie with the given value, using the cookie descriptor settings of this generator (except for "cookieMaxAge").