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 CookieCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 valuevoid
addAll(List<javax.servlet.http.Cookie> cookies)
calls add on each cookievoid
addAll(javax.servlet.http.Cookie[] cookies)
calls add on each cookieList<javax.servlet.http.Cookie>
allAsList()
list of all cookies, expired or notList<javax.servlet.http.Cookie>
asList()
list of non expired cookiesList<javax.servlet.http.Cookie>
expiredAsList()
list of expired cookies
-
-
-
Constructor Detail
-
CookieCollection
public 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
-
expiredAsList
public List<javax.servlet.http.Cookie> expiredAsList()
list of expired cookies- Returns:
- as list
-
-