Uses of Interface
org.springframework.http.ResponseCookie.ResponseCookieBuilder
Packages that use 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
Methods in org.springframework.http that return ResponseCookie.ResponseCookieBuilderModifier 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
Method parameters in org.springframework.web.server.session with type arguments of type ResponseCookie.ResponseCookieBuilderModifier and TypeMethodDescriptionvoidCookieWebSessionIdResolver.addCookieInitializer(Consumer<ResponseCookie.ResponseCookieBuilder> initializer) Add aConsumerto further initialize the session id cookie afterCookieWebSessionIdResolver.getCookieName()andCookieWebSessionIdResolver.getCookieMaxAge()are applied.