public class CookieCutter extends Object
Optimized stateful cookie parser. 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() |
Modifier and Type | Method and Description |
---|---|
void |
addCookieField(String f) |
javax.servlet.http.Cookie[] |
getCookies() |
protected void |
parseFields() |
void |
reset() |
void |
setCookies(javax.servlet.http.Cookie[] cookies) |
public javax.servlet.http.Cookie[] getCookies()
public void setCookies(javax.servlet.http.Cookie[] cookies)
public void reset()
public void addCookieField(String f)
protected void parseFields()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.