Class CookieCollection

java.lang.Object
org.apache.wicket.protocol.http.mock.CookieCollection

public class CookieCollection extends Object
cookie collection utility
Author:
mosmann
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(jakarta.servlet.http.Cookie cookie)
    add cookie to collection if cookie is expired, it will be moved to expired cookie set overwrite existing cookie with new value
    void
    addAll(jakarta.servlet.http.Cookie[] cookies)
    calls add on each cookie
    void
    addAll(List<jakarta.servlet.http.Cookie> cookies)
    calls add on each cookie
    List<jakarta.servlet.http.Cookie>
    list of all cookies, expired or not
    List<jakarta.servlet.http.Cookie>
    list of non expired cookies
    List<jakarta.servlet.http.Cookie>
    list of expired cookies

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • add

      public void add(jakarta.servlet.http.Cookie cookie)
      add cookie to collection if cookie is expired, it will be moved to expired cookie set overwrite existing cookie with new value
      Parameters:
      cookie - a cookie
    • addAll

      public void addAll(jakarta.servlet.http.Cookie[] cookies)
      calls add on each cookie
      Parameters:
      cookies - array of cookies
    • addAll

      public void addAll(List<jakarta.servlet.http.Cookie> cookies)
      calls add on each cookie
      Parameters:
      cookies - list of cookies
    • asList

      public List<jakarta.servlet.http.Cookie> asList()
      list of non expired cookies
      Returns:
      as list
    • expiredAsList

      public List<jakarta.servlet.http.Cookie> expiredAsList()
      list of expired cookies
      Returns:
      as list
    • allAsList

      public List<jakarta.servlet.http.Cookie> allAsList()
      list of all cookies, expired or not
      Returns:
      as list