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
Modifier and TypeFieldDescriptionprotected final List<javax.servlet.http.Cookie>
protected static final org.slf4j.Logger
-
Constructor Summary
ConstructorDescriptionCookies()
Cookies
(CookieCompliance compliance, ComplianceViolation.Listener complianceListener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addCookieField
(String rawField) javax.servlet.http.Cookie[]
void
reset()
void
setCookies
(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:
addCookie
in interfaceCookieParser.Handler
-