Package | Description |
---|---|
org.springframework.http |
Contains a basic abstraction over client/server-side HTTP.
|
Modifier and Type | Method and Description |
---|---|
ResponseCookie.ResponseCookieBuilder |
ResponseCookie.ResponseCookieBuilder.domain(java.lang.String domain)
Set the cookie "Domain" attribute.
|
static ResponseCookie.ResponseCookieBuilder |
ResponseCookie.from(java.lang.String name,
java.lang.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.
|
ResponseCookie.ResponseCookieBuilder |
ResponseCookie.ResponseCookieBuilder.httpOnly(boolean httpOnly)
Add the "HttpOnly" attribute to the cookie.
|
ResponseCookie.ResponseCookieBuilder |
ResponseCookie.ResponseCookieBuilder.maxAge(java.time.Duration maxAge)
Set the cookie "Max-Age" attribute.
|
ResponseCookie.ResponseCookieBuilder |
ResponseCookie.ResponseCookieBuilder.maxAge(long maxAgeSeconds)
Variant of
maxAge(Duration) accepting a value in seconds. |
ResponseCookie.ResponseCookieBuilder |
ResponseCookie.ResponseCookieBuilder.path(java.lang.String path)
Set the cookie "Path" attribute.
|
ResponseCookie.ResponseCookieBuilder |
ResponseCookie.ResponseCookieBuilder.secure(boolean secure)
Add the "Secure" attribute to the cookie.
|