Class Cookies
java.lang.Object
com.predic8.membrane.core.http.cookie.Cookies
A collection of cookies - reusable and tuned for server side performance.
Based on RFC2965 ( and 2109 )
This class is not synchronized.
- Author:
- Costin Manolache, kevin seguin
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCookies(MimeHeaders headers) Construct a new cookie collection, that will extract the information from headers. -
Method Summary
Modifier and TypeMethodDescriptiongetCookie(int idx) intprotected final voidprocessCookieHeader(byte[] bytes, int off, int len) Parses a cookie header after the initial "Cookie:" [WS][$]token[WS]=[WS](token|QV)[;|,] RFC 2965 JVKvoidprocessCookies(MimeHeaders headers) Add all Cookie found in the headers of a request.voidrecycle()Recycle.toString()EXPENSIVE!!! only for debugging.
-
Field Details
-
INITIAL_SIZE
public static final int INITIAL_SIZE- See Also:
-
-
Constructor Details
-
Cookies
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
EXPENSIVE!!! only for debugging. -
getCookie
-
getCookieCount
public int getCookieCount() -
processCookies
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
-