public class CookieCollection extends Object
Constructor and Description |
---|
CookieCollection() |
Modifier and Type | Method and Description |
---|---|
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
|
void |
addAll(javax.servlet.http.Cookie[] cookies)
calls add on each cookie
|
void |
addAll(List<javax.servlet.http.Cookie> cookies)
calls add on each cookie
|
List<javax.servlet.http.Cookie> |
allAsList()
list of all cookies, expired or not
|
List<javax.servlet.http.Cookie> |
asList()
list of non expired cookies
|
List<javax.servlet.http.Cookie> |
expiredAsList()
list of expired cookies
|
public void add(javax.servlet.http.Cookie cookie)
cookie
- a cookiepublic void addAll(javax.servlet.http.Cookie[] cookies)
cookies
- array of cookiespublic void addAll(List<javax.servlet.http.Cookie> cookies)
cookies
- list of cookiespublic List<javax.servlet.http.Cookie> asList()
public List<javax.servlet.http.Cookie> expiredAsList()
public List<javax.servlet.http.Cookie> allAsList()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.