Package org.eclipse.jetty.server
Class CookieCutter
- java.lang.Object
-
- org.eclipse.jetty.server.CookieCutter
-
public class CookieCutter extends java.lang.ObjectCookie parserOptimized stateful
Cookieheader parser. Does not supportSet-Cookieheader 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.
-
-
Constructor Summary
Constructors Constructor Description CookieCutter()CookieCutter(CookieCompliance compliance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCookieField(java.lang.String f)javax.servlet.http.Cookie[]getCookies()protected booleanisRFC6265RejectedCharacter(boolean inQuoted, char c)protected voidparseFields()voidreset()voidsetCookies(javax.servlet.http.Cookie[] cookies)
-
-
-
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)
-
-