org.apache.wicket.protocol.http.mock
Class CookieCollection

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

public class CookieCollection
extends Object

cookie collection utility

Author:
mosmann

Constructor Summary
CookieCollection()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.