Class CookieCollection

    • Method Detail

      • add

        public void add​(javax.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​(javax.servlet.http.Cookie[] cookies)
        calls add on each cookie
        Parameters:
        cookies - array of cookies
      • addAll

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

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

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

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