Class CookieList

java.lang.Object
org.jdrupes.httpcodec.types.CookieList
All Implemented Interfaces:
Iterable<HttpCookie>

public class CookieList extends Object implements Iterable<HttpCookie>
Represents a list of cookies.

The additional property “same site attribute” controls the generation of header fields.

  • Constructor Details

    • CookieList

      public CookieList(Converters.SameSiteAttribute sameSiteAttribute)
      Creates a new empty cookie list with the specified same-site attribute.
    • CookieList

      public CookieList()
      Creates a new empty cookie list.
    • CookieList

      public CookieList(Collection<HttpCookie> existing)
      Creates a new list with items copied from the existing collection.
      Parameters:
      existing - the existing collection
  • Method Details