public final class Cookies extends Object
Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_SIZE |
protected static StringManager |
sm |
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.
|
String |
toString()
EXPENSIVE!!!
|
protected static final StringManager sm
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 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-2015 Apache Software Foundation. All Rights Reserved.