Class CookieUtil.ServerCookieDecoder

  • Enclosing class:
    CookieUtil

    public static final class CookieUtil.ServerCookieDecoder
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<javax.servlet.http.Cookie> decode​(java.lang.String header)
      Decodes the specified Set-Cookie HTTP header value into a Cookie.
      void decode​(java.lang.String header, java.util.Set<javax.servlet.http.Cookie> cookies)
      Decodes the specified Set-Cookie HTTP header value into a Cookie.
      protected javax.servlet.http.Cookie initCookie​(java.lang.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
    • Method Detail

      • decode

        public java.util.Set<javax.servlet.http.Cookie> decode​(java.lang.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​(java.lang.String header,
                           java.util.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​(java.lang.String header,
                                                       int nameBegin,
                                                       int nameEnd,
                                                       int valueBegin,
                                                       int valueEnd)