# Uses of Interface
org.springframework.http.ResponseCookie.ResponseCookieBuilder

Packages that use ResponseCookie.ResponseCookieBuilder
Package
Description
org.springframework.http
Contains a basic abstraction over client/server-side HTTP.
org.springframework.web.server.session
Auxiliary interfaces and implementation classes for `WebSession` support.

## Uses of ResponseCookie.ResponseCookieBuilder in org.springframework.http

Methods in org.springframework.http that return ResponseCookie.ResponseCookieBuilder
Modifier and Type
Method
Description
`ResponseCookie.ResponseCookieBuilder`
ResponseCookie.ResponseCookieBuilder.`domain(String domain)`
Set the cookie "Domain" attribute.
`static ResponseCookie.ResponseCookieBuilder`
ResponseCookie.`from(String name)`
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.
`static ResponseCookie.ResponseCookieBuilder`
ResponseCookie.`from(String name, String value)`
Factory method to obtain a builder for a server-defined cookie that starts with a name-value pair and may also include attributes.
`static ResponseCookie.ResponseCookieBuilder`
ResponseCookie.`fromClientResponse(String name, String value)`
Factory method to obtain a builder for a server-defined cookie.
`ResponseCookie.ResponseCookieBuilder`
ResponseCookie.ResponseCookieBuilder.`httpOnly(boolean httpOnly)`
Add the "HttpOnly" attribute to the cookie.
`ResponseCookie.ResponseCookieBuilder`
ResponseCookie.ResponseCookieBuilder.`maxAge(long maxAgeSeconds)`
Variant of `maxAge(Duration)` accepting a value in seconds.
`ResponseCookie.ResponseCookieBuilder`
ResponseCookie.ResponseCookieBuilder.`maxAge(Duration maxAge)`
Set the cookie "Max-Age" attribute.
`ResponseCookie.ResponseCookieBuilder`
ResponseCookie.`mutate()`
Return a builder pre-populated with values from `"this"` instance.
`ResponseCookie.ResponseCookieBuilder`
ResponseCookie.ResponseCookieBuilder.`partitioned(boolean partitioned)`
Add the "Partitioned" attribute to the cookie.
`ResponseCookie.ResponseCookieBuilder`
ResponseCookie.ResponseCookieBuilder.`path(String path)`
Set the cookie "Path" attribute.
`ResponseCookie.ResponseCookieBuilder`
ResponseCookie.ResponseCookieBuilder.`sameSite(String sameSite)`
Add the "SameSite" attribute to the cookie.
`ResponseCookie.ResponseCookieBuilder`
ResponseCookie.ResponseCookieBuilder.`secure(boolean secure)`
Add the "Secure" attribute to the cookie.
`ResponseCookie.ResponseCookieBuilder`
ResponseCookie.ResponseCookieBuilder.`value(String value)`
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.ResponseCookieBuilder
Modifier and Type
Method
Description
`void`
CookieWebSessionIdResolver.`addCookieInitializer(Consumer<ResponseCookie.ResponseCookieBuilder> initializer)`
Add a `Consumer` to further initialize the session id cookie after `CookieWebSessionIdResolver.getCookieName()` and `CookieWebSessionIdResolver.getCookieMaxAge()` are applied.