Uses of Interface
Contains a basic abstraction over client/server-side HTTP.
Auxiliary interfaces and implementation classes for
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.Factory method to obtain a builder for a server-defined cookie.ResponseCookie.ResponseCookieBuilder.
(boolean httpOnly)Add the "HttpOnly" attribute to the cookie.ResponseCookie.ResponseCookieBuilder.
(long maxAgeSeconds)Variant of
maxAge(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.
(boolean secure)Add the "Secure" attribute to the cookie.Set the cookie value.