Package org.eclipse.jetty.server
Class CookieCutter
java.lang.Object
org.eclipse.jetty.server.CookieCutter
Cookie parser
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CookieCompliance
private javax.servlet.http.Cookie[]
(package private) int
private javax.servlet.http.Cookie[]
private static final Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
javax.servlet.http.Cookie[]
protected boolean
isRFC6265RejectedCharacter
(boolean inQuoted, char c) protected void
void
reset()
void
setCookies
(javax.servlet.http.Cookie[] cookies)
-
Field Details
-
LOG
-
_compliance
-
_cookies
private javax.servlet.http.Cookie[] _cookies -
_lastCookies
private javax.servlet.http.Cookie[] _lastCookies -
_fieldList
-
_fields
int _fields
-
-
Constructor Details
-
CookieCutter
public CookieCutter() -
CookieCutter
-
-
Method Details
-
getCookies
public javax.servlet.http.Cookie[] getCookies() -
setCookies
public void setCookies(javax.servlet.http.Cookie[] cookies) -
reset
public void reset() -
addCookieField
-
parseFields
protected void parseFields() -
isRFC6265RejectedCharacter
protected boolean isRFC6265RejectedCharacter(boolean inQuoted, char c)
-