| java.lang.Object org.apache.tomcat.util.http.Cookies
Cookies | final public class Cookies (Code) | | A collection of cookies - reusable and tuned for server side performance.
Based on RFC2965 ( and 2109 )
This class is not synchronized.
author: Costin Manolache author: kevin seguin |
Constructor Summary | |
public | Cookies(MimeHeaders headers) Construct a new cookie collection, that will extract
the information from headers. | public | Cookies() Construct a new uninitialized cookie collection. |
Method Summary | |
public ServerCookie | addCookie() Register a new, unitialized cookie. | public static boolean | equals(String s, byte b, int start, int end) | public static int | findDelim1(byte bytes, int off, int end) | public static int | findDelim2(byte bytes, int off, int end) | public ServerCookie | getCookie(int idx) | public int | getCookieCount() | public static int | indexOf(byte bytes, int off, int end, byte qq) | public static int | indexOf(byte bytes, int off, int end, char qq) | public void | log(String s) | void | processCookieHeader(byte bytes, int off, int len) | public void | processCookies(MimeHeaders headers) Add all Cookie found in the headers of a request. | public void | recycle() Recycle. | public void | setHeaders(MimeHeaders headers) Set the headers from which cookies will be pulled. | public static int | skipSpaces(byte bytes, int off, int end) | public String | toString() EXPENSIVE!!! only for debugging. |
INITIAL_SIZE | final public static int INITIAL_SIZE(Code) | | |
cookieCount | int cookieCount(Code) | | |
unprocessed | boolean unprocessed(Code) | | |
Cookies | public Cookies(MimeHeaders headers)(Code) | | Construct a new cookie collection, that will extract
the information from headers.
Parameters: headers - Cookies are lazy-evaluated and will extract theinformation from the provided headers. |
addCookie | public ServerCookie addCookie()(Code) | | Register a new, unitialized 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
|
equals | public static boolean equals(String s, byte b, int start, int end)(Code) | | |
findDelim1 | public static int findDelim1(byte bytes, int off, int end)(Code) | | |
findDelim2 | public static int findDelim2(byte bytes, int off, int end)(Code) | | |
getCookieCount | public int getCookieCount()(Code) | | |
indexOf | public static int indexOf(byte bytes, int off, int end, byte qq)(Code) | | |
indexOf | public static int indexOf(byte bytes, int off, int end, char qq)(Code) | | |
processCookieHeader | void processCookieHeader(byte bytes, int off, int len)(Code) | | Process a byte[] header - allowing fast processing of the
raw data
|
processCookies | public void processCookies(MimeHeaders headers)(Code) | | Add all Cookie found in the headers of a request.
|
recycle | public void recycle()(Code) | | Recycle.
|
setHeaders | public void setHeaders(MimeHeaders headers)(Code) | | Set the headers from which cookies will be pulled.
This has the side effect of recycling the object.
Parameters: headers - Cookies are lazy-evaluated and will extract theinformation from the provided headers. |
skipSpaces | public static int skipSpaces(byte bytes, int off, int end)(Code) | | |
toString | public String toString()(Code) | | EXPENSIVE!!! only for debugging.
|
|
|