Package org.eclipse.jetty.http
Interface SetCookieParser
- All Known Implementing Classes:
RFC6265SetCookieParser
public interface SetCookieParser
A parser for Set-Cookie
header values.
Differently from other HTTP headers, Set-Cookie
cannot be multi-valued
with values separated by commas, because cookies supports the Expires
attribute whose value is an RFC 1123 date that contains a comma.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SetCookieParser
Returns anHttpCookie
obtained by parsing the givenSet-Cookie
value.
-
Method Details
-
parse
Returns an
HttpCookie
obtained by parsing the givenSet-Cookie
value.Returns
null
if theSet-Cookie
value cannot be parsed due to syntax errors.- Parameters:
setCookieValue
- theSet-Cookie
value to parse- Returns:
- the parse
HttpCookie
ornull
-
newInstance
- Returns:
- a new instance of the default
SetCookieParser
-