public final class Cookies extends Object
Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_SIZE |
Constructor and Description |
---|
Cookies(MimeHeaders headers)
Construct a new cookie collection, that will extract
the information from headers.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
setLimit(int limit) |
String |
toString()
EXPENSIVE!!!
|
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 void setLimit(int limit)
public void recycle()
public String toString()
public ServerCookie getCookie(int idx)
public int getCookieCount()
public void processCookies(MimeHeaders headers)
protected final void processCookieHeader(byte[] bytes, int off, int len)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.