Class RFC6265SetCookieParser

java.lang.Object
org.eclipse.jetty.http.RFC6265SetCookieParser
All Implemented Interfaces:
SetCookieParser

public class RFC6265SetCookieParser extends Object implements 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 Details

    • RFC6265SetCookieParser

      public RFC6265SetCookieParser()
  • Method Details

    • parse

      public HttpCookie parse(String setCookieValue)
      Description copied from interface: SetCookieParser

      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.

      Specified by:
      parse in interface SetCookieParser
      Parameters:
      setCookieValue - the Set-Cookie value to parse
      Returns:
      the parse HttpCookie or null