|
||||||||||
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
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()
Construct a new uninitialized cookie collection. |
|
Cookies(MimeHeaders headers)
Construct a new cookie collection, that will extract the information from headers. |
Method Summary | |
ServerCookie |
addCookie()
Register a new, unitialized cookie. |
static boolean |
equals(java.lang.String s,
byte[] b,
int start,
int end)
|
static int |
findDelim1(byte[] bytes,
int off,
int end)
|
static int |
findDelim2(byte[] bytes,
int off,
int end)
|
ServerCookie |
getCookie(int idx)
|
int |
getCookieCount()
|
static int |
indexOf(byte[] bytes,
int off,
int end,
byte qq)
|
static int |
indexOf(byte[] bytes,
int off,
int end,
char qq)
|
void |
log(java.lang.String s)
|
void |
processCookies(MimeHeaders headers)
Add all Cookie found in the headers of a request. |
void |
recycle()
Recycle. |
void |
setHeaders(MimeHeaders headers)
Set the headers from which cookies will be pulled. |
static int |
skipSpaces(byte[] bytes,
int off,
int end)
|
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.public Cookies()
setHeaders(org.apache.tomcat.util.http.MimeHeaders)
to initialize.
Method Detail |
public void setHeaders(MimeHeaders headers)
headers
- Cookies are lazy-evaluated and will extract the
information from the provided headers.public void recycle()
public java.lang.String toString()
public ServerCookie getCookie(int idx)
public int getCookieCount()
public ServerCookie addCookie()
public void processCookies(MimeHeaders headers)
public static int skipSpaces(byte[] bytes, int off, int end)
public static int findDelim1(byte[] bytes, int off, int end)
public static int findDelim2(byte[] bytes, int off, int end)
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 static boolean equals(java.lang.String s, byte[] b, int start, int end)
public void log(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |