Class DefaultCookie

    • Constructor Detail

      • DefaultCookie

        public DefaultCookie​(java.lang.String name,
                             java.lang.String value)
        Deprecated.
        Creates a new cookie with the specified name and value.
    • Method Detail

      • getName

        @Deprecated
        public java.lang.String getName()
        Deprecated.
        Specified by:
        getName in interface Cookie
      • getValue

        @Deprecated
        public java.lang.String getValue()
        Deprecated.
        Specified by:
        getValue in interface Cookie
      • getDomain

        @Deprecated
        public java.lang.String getDomain()
        Deprecated.
        Specified by:
        getDomain in interface Cookie
      • getPath

        @Deprecated
        public java.lang.String getPath()
        Deprecated.
        Specified by:
        getPath in interface Cookie
      • getComment

        @Deprecated
        public java.lang.String getComment()
        Deprecated.
        Specified by:
        getComment in interface Cookie
      • comment

        @Deprecated
        public java.lang.String comment()
        Deprecated.
        Description copied from interface: Cookie
        Returns the comment of this Cookie.
        Specified by:
        comment in interface Cookie
        Returns:
        The comment of this Cookie
      • setComment

        @Deprecated
        public void setComment​(java.lang.String comment)
        Deprecated.
        Description copied from interface: Cookie
        Sets the comment of this Cookie.
        Specified by:
        setComment in interface Cookie
        Parameters:
        comment - The comment to use
      • getCommentUrl

        @Deprecated
        public java.lang.String getCommentUrl()
        Deprecated.
        Specified by:
        getCommentUrl in interface Cookie
      • commentUrl

        @Deprecated
        public java.lang.String commentUrl()
        Deprecated.
        Description copied from interface: Cookie
        Returns the comment URL of this Cookie.
        Specified by:
        commentUrl in interface Cookie
        Returns:
        The comment URL of this Cookie
      • setCommentUrl

        @Deprecated
        public void setCommentUrl​(java.lang.String commentUrl)
        Deprecated.
        Description copied from interface: Cookie
        Sets the comment URL of this Cookie.
        Specified by:
        setCommentUrl in interface Cookie
        Parameters:
        commentUrl - The comment URL to use
      • isDiscard

        @Deprecated
        public boolean isDiscard()
        Deprecated.
        Description copied from interface: Cookie
        Checks to see if this Cookie is to be discarded by the browser at the end of the current session.
        Specified by:
        isDiscard in interface Cookie
        Returns:
        True if this Cookie is to be discarded, otherwise false
      • setDiscard

        @Deprecated
        public void setDiscard​(boolean discard)
        Deprecated.
        Description copied from interface: Cookie
        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
        Specified by:
        setDiscard in interface Cookie
        Parameters:
        discard - True if the Cookie is to be discarded
      • getPorts

        @Deprecated
        public java.util.Set<java.lang.Integer> getPorts()
        Deprecated.
        Specified by:
        getPorts in interface Cookie
      • ports

        @Deprecated
        public java.util.Set<java.lang.Integer> ports()
        Deprecated.
        Description copied from interface: Cookie
        Returns the ports that this Cookie can be accessed on.
        Specified by:
        ports in interface Cookie
        Returns:
        The Set of ports that this Cookie can use
      • setPorts

        @Deprecated
        public void setPorts​(int... ports)
        Deprecated.
        Description copied from interface: Cookie
        Sets the ports that this Cookie can be accessed on.
        Specified by:
        setPorts in interface Cookie
        Parameters:
        ports - The ports that this Cookie can be accessed on
      • setPorts

        @Deprecated
        public void setPorts​(java.lang.Iterable<java.lang.Integer> ports)
        Deprecated.
        Description copied from interface: Cookie
        Sets the ports that this Cookie can be accessed on.
        Specified by:
        setPorts in interface Cookie
        Parameters:
        ports - The Iterable collection of ports that this Cookie can be accessed on.
      • getMaxAge

        @Deprecated
        public long getMaxAge()
        Deprecated.
        Specified by:
        getMaxAge in interface Cookie
      • getVersion

        @Deprecated
        public int getVersion()
        Deprecated.
        Specified by:
        getVersion in interface Cookie
      • version

        @Deprecated
        public int version()
        Deprecated.
        Description copied from interface: Cookie
        Returns the version of this Cookie.
        Specified by:
        version in interface Cookie
        Returns:
        The version of this Cookie
      • setVersion

        @Deprecated
        public void setVersion​(int version)
        Deprecated.
        Description copied from interface: Cookie
        Sets the version of this Cookie.
        Specified by:
        setVersion in interface Cookie
        Parameters:
        version - The new version to use