Class CookieSettingReader

    • Field Detail

      • NAME_SET_ACCESS_RESTRICTED

        private static final java.lang.String NAME_SET_ACCESS_RESTRICTED
        See Also:
        Constant Field Values
      • NAME_SET_COMMENT

        private static final java.lang.String NAME_SET_COMMENT
        See Also:
        Constant Field Values
      • NAME_SET_COMMENT_URL

        private static final java.lang.String NAME_SET_COMMENT_URL
        See Also:
        Constant Field Values
      • NAME_SET_DISCARD

        private static final java.lang.String NAME_SET_DISCARD
        See Also:
        Constant Field Values
      • NAME_SET_EXPIRES

        private static final java.lang.String NAME_SET_EXPIRES
        See Also:
        Constant Field Values
      • NAME_SET_MAX_AGE

        private static final java.lang.String NAME_SET_MAX_AGE
        See Also:
        Constant Field Values
      • NAME_SET_VERSION

        private static final java.lang.String NAME_SET_VERSION
        See Also:
        Constant Field Values
      • cachedPair

        private volatile Parameter cachedPair
        The cached pair. Used by the readPair() method.
      • globalVersion

        private volatile int globalVersion
        The global cookie specification version.
    • Constructor Detail

      • CookieSettingReader

        public CookieSettingReader​(java.lang.String header)
        Constructor.
        Parameters:
        header - The header to read.
    • Method Detail

      • read

        public static CookieSetting read​(java.lang.String cookieSetting)
                                  throws java.lang.IllegalArgumentException
        Parses the given String to a CookieSetting
        Parameters:
        cookieSetting -
        Returns:
        the CookieSetting parsed from the String
        Throws:
        java.lang.IllegalArgumentException - Thrown if the String can not be parsed as CookieSetting.
      • readPair

        private Parameter readPair()
                            throws java.io.IOException
        Reads the next pair as a parameter.
        Returns:
        The next pair as a parameter.
        Throws:
        java.io.IOException
      • readValue

        public CookieSetting readValue()
                                throws java.io.IOException
        Description copied from class: HeaderReader
        Read the next value. There can be multiple values for a single header. Returns null by default.
        Overrides:
        readValue in class HeaderReader<CookieSetting>
        Returns:
        The next value.
        Throws:
        java.io.IOException