java.lang.Object
org.eclipse.jetty.server.Cookies
- All Implemented Interfaces:
org.eclipse.jetty.http.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<jakarta.servlet.http.Cookie>protected static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddCookieField(String rawField) jakarta.servlet.http.Cookie[]voidreset()voidsetCookies(jakarta.servlet.http.Cookie[] cookies)
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG -
_rawFields
-
_cookieList
-
-
Constructor Details
-
Cookies
public Cookies() -
Cookies
public Cookies(org.eclipse.jetty.http.CookieCompliance compliance, org.eclipse.jetty.http.ComplianceViolation.Listener complianceListener)
-
-
Method Details
-
addCookieField
-
getCookies
public jakarta.servlet.http.Cookie[] getCookies() -
setCookies
public void setCookies(jakarta.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 interfaceorg.eclipse.jetty.http.CookieParser.Handler
-