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.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| private Cookie[] | |
| pack-priv boolean | |
| private String[] | |
| pack-priv HttpServletRequest | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Cookie[] | |
| protected void | |
| public void | |
| public void |
| _added | back to summary |
|---|---|
| pack-priv int _added | |
| _cookies | back to summary |
|---|---|
| private Cookie[] _cookies | |
| _dirty | back to summary |
|---|---|
| pack-priv boolean _dirty | |
| _fields | back to summary |
|---|---|
| private String[] _fields | |
| _request | back to summary |
|---|---|
| pack-priv HttpServletRequest _request | |
| STATE_DELIMITER | back to summary |
|---|---|
| private static final byte STATE_DELIMITER | |
| STATE_NAME | back to summary |
|---|---|
| private static final byte STATE_NAME | |
| STATE_QUOTED_VALUE | back to summary |
|---|---|
| private static final byte STATE_QUOTED_VALUE | |
| STATE_UNQUOTED_VALUE | back to summary |
|---|---|
| private static final byte STATE_UNQUOTED_VALUE | |
| STATE_VALUE | back to summary |
|---|---|
| private static final byte STATE_VALUE | |
| CookieCutter | back to summary |
|---|---|
| public CookieCutter() | |
| CookieCutter | back to summary |
|---|---|
| public CookieCutter(HttpServletRequest request) | |
| addCookieField | back to summary |
|---|---|
| public void addCookieField(String f) | |
| getCookies | back to summary |
|---|---|
| public Cookie[] getCookies() | |
| parseFields | back to summary |
|---|---|
| protected void parseFields() | |
| reset | back to summary |
|---|---|
| public void reset() | |
| setCookies | back to summary |
|---|---|
| public void setCookies(Cookie[] cookies) | |