- All Superinterfaces:
InboundSetCookies
Represents mutable outbound HTTP set-cookies.
- Since:
- 1.6
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault OutboundSetCookiesAdds a set-cookie with the specified name and value.addCookie(Consumer<SetCookie.Configurator> configurer) Adds a set-cookie.default OutboundSetCookiesremoveCookie(String... names) Removes the set-cookie with the specified names.removeCookie(Set<String> names) Removes the set-cookie with the specified names.default OutboundSetCookiesSets the set-cookie with the specified name and value.setCookie(Consumer<SetCookie.Configurator> configurer) Sets a set-cookie.
-
Method Details
-
addCookie
Adds a set-cookie with the specified name and value.
- Parameters:
name- a cookie namevalue- a cookie value- Returns:
- the outbound set-cookies
-
addCookie
Adds a set-cookie.
- Parameters:
configurer- a set-cookie configurer- Returns:
- the outbound set-cookies
-
setCookie
Sets the set-cookie with the specified name and value.
- Parameters:
name- a cookie namevalue- a cookie value- Returns:
- the outbound set-cookies
-
setCookie
Sets a set-cookie.
- Parameters:
configurer- a set-cookie configurer- Returns:
- the outbound set-cookies
-
removeCookie
Removes the set-cookie with the specified names.
- Parameters:
names- the names of the set-cookies to remove- Returns:
- the outbound set-cookies
-
removeCookie
Removes the set-cookie with the specified names.
- Parameters:
names- the names of the set-cookies to remove- Returns:
- the outbound set-cookies
-