java.lang.Object
org.eclipse.jetty.http.CookieCache
- All Implemented Interfaces:
CookieParser.Handler
Cookie parser
Optimized stateful cookie parser. If the added fields are identical to those last added (as strings), then the cookies are not re-parsed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<HttpCookie>
protected static final org.slf4j.Logger
-
Constructor Summary
ConstructorsConstructorDescriptionCookieCache
(CookieCompliance compliance, ComplianceViolation.Listener complianceListener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCookie
(String cookieName, String cookieValue, int cookieVersion, String cookieDomain, String cookiePath, String cookieComment) getCookies
(HttpFields headers) void
replaceCookieList
(List<HttpCookie> cookies) Replace the cookie list with
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG -
_rawFields
-
_cookieList
-
-
Constructor Details
-
CookieCache
public CookieCache() -
CookieCache
-
-
Method Details
-
addCookie
public void addCookie(String cookieName, String cookieValue, int cookieVersion, String cookieDomain, String cookiePath, String cookieComment) - Specified by:
addCookie
in interfaceCookieParser.Handler
-
getCookies
-
replaceCookieList
Replace the cookie list with- Parameters:
cookies
- The replacement cookie list, which must be equal to the existing list
-