public class CookieCutter
extends java.lang.Object
Optimized stateful Cookie header parser.
Does not support Set-Cookie header parsing.
Cookies fields are added with the addCookieField(String) method and
parsed on the next subsequent call to getCookies().
If the added fields are identical to those last added (as strings), then the cookies are not re parsed.
| Constructor and Description |
|---|
CookieCutter() |
CookieCutter(CookieCompliance compliance) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCookieField(java.lang.String f) |
javax.servlet.http.Cookie[] |
getCookies() |
protected boolean |
isRFC6265RejectedCharacter(boolean inQuoted,
char c) |
protected void |
parseFields() |
void |
reset() |
void |
setCookies(javax.servlet.http.Cookie[] cookies) |
public CookieCutter()
public CookieCutter(CookieCompliance compliance)
public javax.servlet.http.Cookie[] getCookies()
public void setCookies(javax.servlet.http.Cookie[] cookies)
public void reset()
public void addCookieField(java.lang.String f)
protected void parseFields()
protected boolean isRFC6265RejectedCharacter(boolean inQuoted,
char c)
Copyright © 1995–2021 Webtide. All rights reserved.