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 SetCookieParserReturns anHttpCookieobtained by parsing the givenSet-Cookievalue.
-
Method Details
-
parse
Returns an
HttpCookieobtained by parsing the givenSet-Cookievalue.Returns
nullif theSet-Cookievalue cannot be parsed due to syntax errors.- Parameters:
setCookieValue- theSet-Cookievalue to parse- Returns:
- the parse
HttpCookieornull
-
newInstance
- Returns:
- a new instance of the default
SetCookieParser
-