Interface OutboundSetCookies

All Superinterfaces:
InboundSetCookies

public interface OutboundSetCookies extends InboundSetCookies

Represents mutable outbound HTTP set-cookies.

Since:
1.6
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • addCookie

      default OutboundSetCookies addCookie(String name, String value)

      Adds a set-cookie with the specified name and value.

      Parameters:
      name - a cookie name
      value - 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

      default OutboundSetCookies setCookie(String name, String value)

      Sets the set-cookie with the specified name and value.

      Parameters:
      name - a cookie name
      value - 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

      default OutboundSetCookies removeCookie(String... names)

      Removes the set-cookie with the specified names.

      Parameters:
      names - the names of the set-cookies to remove
      Returns:
      the outbound set-cookies
    • removeCookie

      OutboundSetCookies removeCookie(Set<String> names)

      Removes the set-cookie with the specified names.

      Parameters:
      names - the names of the set-cookies to remove
      Returns:
      the outbound set-cookies