Package org.apache.tomcat.util.http
Class ServerCookies
- java.lang.Object
- 
- org.apache.tomcat.util.http.ServerCookies
 
- 
 public class ServerCookies extends java.lang.ObjectThis class is not thread-safe.
- 
- 
Constructor SummaryConstructors Constructor Description ServerCookies(int initialSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerCookieaddCookie()Register a new, initialized cookie.ServerCookiegetCookie(int idx)intgetCookieCount()voidrecycle()voidsetLimit(int limit)
 
- 
- 
- 
Method Detail- 
addCookiepublic ServerCookie addCookie() Register a new, initialized cookie. Cookies are recycled, and most of the time an existing ServerCookie object is returned. The caller can set the name/value and attributes for the cookie.- Returns:
- the new cookie
 
 - 
getCookiepublic ServerCookie getCookie(int idx) 
 - 
getCookieCountpublic int getCookieCount() 
 - 
setLimitpublic void setLimit(int limit) 
 - 
recyclepublic void recycle() 
 
- 
 
-