|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.http.Cookies
public final class Cookies
A collection of cookies - reusable and tuned for server side performance. Based on RFC2965 ( and 2109 ) This class is not synchronized.
Field Summary | |
---|---|
static int |
INITIAL_SIZE
|
Constructor Summary | |
---|---|
Cookies(MimeHeaders headers)
Construct a new cookie collection, that will extract the information from headers. |
Method Summary | |
---|---|
ServerCookie |
getCookie(int idx)
|
int |
getCookieCount()
|
protected 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 |
void |
processCookies(MimeHeaders headers)
Add all Cookie found in the headers of a request. |
void |
recycle()
Recycle. |
java.lang.String |
toString()
EXPENSIVE!!! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INITIAL_SIZE
Constructor Detail |
---|
public Cookies(MimeHeaders headers)
headers
- Cookies are lazy-evaluated and will extract the
information from the provided headers.Method Detail |
---|
public void recycle()
public java.lang.String toString()
toString
in class java.lang.Object
public ServerCookie getCookie(int idx)
public int getCookieCount()
public void processCookies(MimeHeaders headers)
protected final void processCookieHeader(byte[] bytes, int off, int len)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |