Uses of Interface
org.springframework.http.ResponseCookie.ResponseCookieBuilder
Package
Description
Contains a basic abstraction over client/server-side HTTP.
Auxiliary interfaces and implementation classes for
WebSession
support.-
Uses of ResponseCookie.ResponseCookieBuilder in org.springframework.http
Modifier and TypeMethodDescriptionSet 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.ResponseCookieBuilder.httpOnly
(boolean httpOnly) Add the "HttpOnly" attribute to the cookie.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.ResponseCookieBuilder.secure
(boolean secure) Add the "Secure" attribute to the cookie.Set the cookie value. -
Uses of ResponseCookie.ResponseCookieBuilder in org.springframework.web.server.session
Modifier and TypeMethodDescriptionvoid
CookieWebSessionIdResolver.addCookieInitializer
(Consumer<ResponseCookie.ResponseCookieBuilder> initializer) Add aConsumer
for aResponseCookieBuilder
that will be invoked for each cookie being built, just before the call tobuild()
.