Package org.eclipse.jetty.http
Class RFC6265SetCookieParser
java.lang.Object
org.eclipse.jetty.http.RFC6265SetCookieParser
- All Implemented Interfaces:
SetCookieParser
A parser for Set-Cookie
header values following
RFC 6265.
White spaces around cookie name and value, and around attribute name and value, are permitted but stripped. Cookie values and attribute values may be quoted with double-quotes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns anHttpCookie
obtained by parsing the givenSet-Cookie
value.
-
Constructor Details
-
RFC6265SetCookieParser
public RFC6265SetCookieParser()
-
-
Method Details
-
parse
Description copied from interface:SetCookieParser
Returns an
HttpCookie
obtained by parsing the givenSet-Cookie
value.Returns
null
if theSet-Cookie
value cannot be parsed due to syntax errors.- Specified by:
parse
in interfaceSetCookieParser
- Parameters:
setCookieValue
- theSet-Cookie
value to parse- Returns:
- the parse
HttpCookie
ornull
-