Interface InboundCookies

All Known Subinterfaces:
OutboundCookies

public interface InboundCookies

Represents immutable inbound HTTP cookies.

Inbound cookies are recevieved by a server in a request in a server exchange.

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

    • contains

      boolean contains(String name)

      Determines whether a cookie with the specified name is present.

      Parameters:
      name - a cookie name
      Returns:
      true if a cookie is present, false otherwise
    • getNames

      Set<String> getNames()

      Returns the names of the cookies.

      Returns:
      a list of cookie names
    • get

      Returns the cookie with the specified name.

      If there are multiple cookies with the same name, this method returns the first one.

      Parameters:
      name - a cookie name
      Returns:
      an optional returning the cookie parameter or an empty optional if there's no cookie with the specified name
    • getAll

      List<CookieParameter> getAll(String name)

      Returns all cookies with the specified name.

      Parameters:
      name - a cookie name
      Returns:
      a list of cookie parameters or an empty list if there's no cookie with the specified name
    • getAll

      Returns all cookies.

      Returns:
      the cookies grouped by name