Class Cookies

java.lang.Object
com.predic8.membrane.core.http.cookie.Cookies

public final class Cookies extends Object
A collection of cookies - reusable and tuned for server side performance. Based on RFC2965 ( and 2109 )

This class is not synchronized.

Source: ... License: ...

Author:
Costin Manolache, kevin seguin
  • Field Details

  • Constructor Details

    • Cookies

      public Cookies(MimeHeaders headers)
      Construct a new cookie collection, that will extract the information from headers.
      Parameters:
      headers - Cookies are lazy-evaluated and will extract the information from the provided headers.
  • Method Details

    • recycle

      public void recycle()
      Recycle.
    • toString

      public String toString()
      EXPENSIVE!!! only for debugging.
      Overrides:
      toString in class Object
    • getCookie

      public ServerCookie getCookie(int idx)
    • getCookieCount

      public int getCookieCount()
    • processCookies

      public void processCookies(MimeHeaders headers)
      Add all Cookie found in the headers of a request.
    • processCookieHeader

      protected final void processCookieHeader(byte[] bytes, int off, int len)
      Parses a cookie header after the initial "Cookie:" [WS][$]token[WS]=[WS](token|QV)[;|,] RFC 2965 JVK