Package org.eclipse.jetty.server
Class CookieCutter
- java.lang.Object
-
- org.eclipse.jetty.server.CookieCutter
-
public class CookieCutter extends java.lang.Object
Cookie parserOptimized stateful
Cookie
header parser. Does not supportSet-Cookie
header parsing.Cookies fields are added with the
addCookieField(String)
method and parsed on the next subsequent call togetCookies()
.If the added fields are identical to those last added (as strings), then the cookies are not re parsed.
-
-
Field Summary
Fields Modifier and Type Field Description private CookieCompliance
_compliance
private javax.servlet.http.Cookie[]
_cookies
private java.util.List<java.lang.String>
_fieldList
(package private) int
_fields
private javax.servlet.http.Cookie[]
_lastCookies
private static Logger
LOG
-
Constructor Summary
Constructors Constructor Description CookieCutter()
CookieCutter(CookieCompliance compliance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
_compliance
private final CookieCompliance _compliance
-
_cookies
private javax.servlet.http.Cookie[] _cookies
-
_lastCookies
private javax.servlet.http.Cookie[] _lastCookies
-
_fieldList
private final java.util.List<java.lang.String> _fieldList
-
_fields
int _fields
-
-
Constructor Detail
-
CookieCutter
public CookieCutter()
-
CookieCutter
public CookieCutter(CookieCompliance compliance)
-
-
Method Detail
-
getCookies
public javax.servlet.http.Cookie[] getCookies()
-
setCookies
public void setCookies(javax.servlet.http.Cookie[] cookies)
-
reset
public void reset()
-
addCookieField
public void addCookieField(java.lang.String f)
-
parseFields
protected void parseFields()
-
isRFC6265RejectedCharacter
protected boolean isRFC6265RejectedCharacter(boolean inQuoted, char c)
-
-