Class ServerCookies


  • public class ServerCookies
    extends java.lang.Object
    This class is not thread-safe.
    • Constructor Detail

      • ServerCookies

        public ServerCookies​(int initialSize)
    • Method Detail

      • addCookie

        public 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
      • getCookieCount

        public int getCookieCount()
      • setLimit

        public void setLimit​(int limit)
      • recycle

        public void recycle()