Class CookieUtil.ServerCookieDecoder

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

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

    Fields
    Modifier and Type
    Field
    Description
    Strict encoder that validates that name and value chars are in the valid scope defined in RFC6265
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<javax.servlet.http.Cookie>
    decode(String header)
    Decodes the specified Set-Cookie HTTP header value into a Cookie.
    void
    decode(String header, Set<javax.servlet.http.Cookie> cookies)
    Decodes the specified Set-Cookie HTTP header value into a Cookie.
    protected javax.servlet.http.Cookie
    initCookie(String header, int nameBegin, int nameEnd, int valueBegin, int valueEnd)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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<javax.servlet.http.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<javax.servlet.http.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 javax.servlet.http.Cookie initCookie(String header, int nameBegin, int nameEnd, int valueBegin, int valueEnd)