|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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
|
protected static StringManager |
sm
|
| 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. |
String |
toString()
EXPENSIVE!!! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final StringManager sm
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 String toString()
toString in class Objectpublic ServerCookie getCookie(int idx)
public int getCookieCount()
public void processCookies(MimeHeaders headers)
protected final void processCookieHeader(byte[] bytes,
int off,
int len)
|
Apache Tomcat 7.0.28 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||