Class CookieUtil.ServerCookieDecoder

java.lang.Object
org.atmosphere.util.CookieUtil.ServerCookieDecoder
Enclosing class:
CookieUtil

public static final class CookieUtil.ServerCookieDecoder extends Object
  • Field Details

    • STRICT

      public static final CookieUtil.ServerCookieDecoder STRICT
      Strict encoder that validates that name and value chars are in the valid scope defined in RFC6265
  • Method Details

    • decode

      public Set<Cookie> decode(String header)
      Decodes the specified Set-Cookie HTTP header value into a Cookie.
      Parameters:
      header - the cookie header
      Returns:
      the decoded Cookie
    • decode

      public void decode(String header, Set<Cookie> cookies)
      Decodes the specified Set-Cookie HTTP header value into a Cookie.
      Parameters:
      header - the cookie header
      cookies - the cookies to be filled
    • initCookie

      protected Cookie initCookie(String header, int nameBegin, int nameEnd, int valueBegin, int valueEnd)