Interface Cookie

    • Method Detail

      • setComment

        @Deprecated
        void setComment​(String comment)
        Deprecated.
        Not part of RFC6265
        Sets the comment of this Cookie.
        Parameters:
        comment - The comment to use
      • setMaxAge

        @Deprecated
        void setMaxAge​(long maxAge)
        Deprecated.
        Not part of RFC6265
        Sets the maximum age of this Cookie in seconds. If an age of 0 is specified, this Cookie will be automatically removed by browser because it will expire immediately. If Long.MIN_VALUE is specified, this Cookie will be removed when the browser is closed.
        Specified by:
        setMaxAge in interface Cookie
        Parameters:
        maxAge - The maximum age of this Cookie in seconds
      • version

        @Deprecated
        int version()
        Deprecated.
        Not part of RFC6265
        Returns the version of this Cookie.
        Returns:
        The version of this Cookie
      • setVersion

        @Deprecated
        void setVersion​(int version)
        Deprecated.
        Not part of RFC6265
        Sets the version of this Cookie.
        Parameters:
        version - The new version to use
      • commentUrl

        @Deprecated
        String commentUrl()
        Deprecated.
        Not part of RFC6265
        Returns the comment URL of this Cookie.
        Returns:
        The comment URL of this Cookie
      • setCommentUrl

        @Deprecated
        void setCommentUrl​(String commentUrl)
        Deprecated.
        Not part of RFC6265
        Sets the comment URL of this Cookie.
        Parameters:
        commentUrl - The comment URL to use
      • isDiscard

        @Deprecated
        boolean isDiscard()
        Deprecated.
        Not part of RFC6265
        Checks to see if this Cookie is to be discarded by the browser at the end of the current session.
        Returns:
        True if this Cookie is to be discarded, otherwise false
      • setDiscard

        @Deprecated
        void setDiscard​(boolean discard)
        Deprecated.
        Not part of RFC6265
        Sets the discard flag of this Cookie. If set to true, this Cookie will be discarded by the browser at the end of the current session
        Parameters:
        discard - True if the Cookie is to be discarded
      • setPorts

        @Deprecated
        void setPorts​(int... ports)
        Deprecated.
        Not part of RFC6265
        Sets the ports that this Cookie can be accessed on.
        Parameters:
        ports - The ports that this Cookie can be accessed on
      • setPorts

        @Deprecated
        void setPorts​(Iterable<Integer> ports)
        Deprecated.
        Not part of RFC6265
        Sets the ports that this Cookie can be accessed on.
        Parameters:
        ports - The Iterable collection of ports that this Cookie can be accessed on.