Package org.eclipse.jetty.server
Class Cookies
java.lang.Object
org.eclipse.jetty.server.Cookies
- All Implemented Interfaces:
CookieParser.Handler
Cookie parser
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<javax.servlet.http.Cookie>protected static final org.slf4j.Logger -
Constructor Summary
ConstructorsConstructorDescriptionCookies()Cookies(CookieCompliance compliance, ComplianceViolation.Listener complianceListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddCookieField(String rawField) javax.servlet.http.Cookie[]voidreset()voidsetCookies(javax.servlet.http.Cookie[] cookies)
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG -
_rawFields
-
_cookieList
-
-
Constructor Details
-
Cookies
public Cookies() -
Cookies
-
-
Method Details
-
addCookieField
-
getCookies
public javax.servlet.http.Cookie[] getCookies() -
setCookies
public void setCookies(javax.servlet.http.Cookie[] cookies) -
reset
public void reset() -
addCookie
public void addCookie(String name, String value, int version, String domain, String path, String comment) - Specified by:
addCookiein interfaceCookieParser.Handler
-