public final class Cookies extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
INITIAL_SIZE |
| Constructor and Description |
|---|
Cookies()
Construct a new uninitialized cookie collection.
|
Cookies(MimeHeaders headers)
Construct a new cookie collection, that will extract
the information from headers.
|
| Modifier and Type | Method and Description |
|---|---|
ServerCookie |
addCookie()
Register a new, unitialized cookie.
|
static boolean |
equals(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(String s) |
void |
processCookieHeader(byte[] bytes,
int off,
int len)
Process a byte[] header - allowing fast processing of the
raw data
|
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) |
String |
toString()
EXPENSIVE!!! only for debugging.
|
public static final int INITIAL_SIZE
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.public void setHeaders(MimeHeaders headers)
headers - Cookies are lazy-evaluated and will extract the
information from the provided headers.public void recycle()
public String toString()
public ServerCookie getCookie(int idx)
public int getCookieCount()
public ServerCookie addCookie()
public void processCookies(MimeHeaders headers)
public void processCookieHeader(byte[] bytes,
int off,
int len)
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(String s, byte[] b, int start, int end)
public void log(String s)
Copyright © 2005–2017 Oracle Corporation. All rights reserved.