Class ServerCookies
java.lang.Object
org.apache.tomcat.util.http.ServerCookies
-
Constructor Details
-
ServerCookies
public ServerCookies(int initialSize)
-
-
Method Details
-
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
-
getCookie
-
getCookieCount
public int getCookieCount() -
setLimit
public void setLimit(int limit) -
recycle
public void recycle()
-