Top Description Methods
org.eclipse.jetty.http

public Interface SetCookieParser

Known Direct Implementers
org.eclipse.jetty.http.RFC6265SetCookieParser

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 TypeMethod and Description
public static SetCookieParser

Returns:

a new instance of the default SetCookieParser
newInstance
()

public HttpCookie

Returns:

the parse HttpCookie or null
parse
(String
the Set-Cookie value to parse
setCookieValue
)

Returns an HttpCookie obtained by parsing the given Set-Cookie value.

Method Detail

newInstanceback to summary
public static SetCookieParser newInstance()
Returns:SetCookieParser

a new instance of the default SetCookieParser

parseback to summary
public HttpCookie parse(String setCookieValue)

Returns an HttpCookie obtained by parsing the given Set-Cookie value.

Returns null if the Set-Cookie value cannot be parsed due to syntax errors.

Parameters
setCookieValue:String

the Set-Cookie value to parse

Returns:HttpCookie

the parse HttpCookie or null