Interface Cookie

    • Method Detail

      • getName

        @Deprecated
        java.lang.String getName()
        Deprecated.
        Use Cookie.name() instead.
      • getValue

        @Deprecated
        java.lang.String getValue()
        Deprecated.
        Use Cookie.value() instead.
      • getDomain

        @Deprecated
        java.lang.String getDomain()
        Deprecated.
        Use Cookie.domain() instead.
      • getPath

        @Deprecated
        java.lang.String getPath()
        Deprecated.
        Use Cookie.path() instead.
      • getComment

        @Deprecated
        java.lang.String getComment()
        Deprecated.
        Use comment() instead.
      • comment

        @Deprecated
        java.lang.String comment()
        Deprecated.
        Not part of RFC6265
        Returns the comment of this Cookie.
        Returns:
        The comment of this Cookie
      • setComment

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

        @Deprecated
        long getMaxAge()
        Deprecated.
        Use maxAge() instead.
      • maxAge

        @Deprecated
        long maxAge()
        Deprecated.
        Not part of RFC6265
        Returns the maximum age of this Cookie in seconds or Long.MIN_VALUE if unspecified
        Specified by:
        maxAge in interface Cookie
        Returns:
        The maximum age of this Cookie
      • 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
      • getVersion

        @Deprecated
        int getVersion()
        Deprecated.
        Use version() instead.
      • 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
      • getCommentUrl

        @Deprecated
        java.lang.String getCommentUrl()
        Deprecated.
        Use commentUrl() instead.
      • commentUrl

        @Deprecated
        java.lang.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​(java.lang.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
      • getPorts

        @Deprecated
        java.util.Set<java.lang.Integer> getPorts()
        Deprecated.
        Use ports() instead.
      • ports

        @Deprecated
        java.util.Set<java.lang.Integer> ports()
        Deprecated.
        Not part of RFC6265
        Returns the ports that this Cookie can be accessed on.
        Returns:
        The Set of ports that this Cookie can use
      • 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​(java.lang.Iterable<java.lang.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.