Class CookieImpl

  • All Implemented Interfaces:
    Cookie, java.lang.Comparable

    public class CookieImpl
    extends java.lang.Object
    implements Cookie
    Author:
    Stuart Douglas, Richard Opalka
    • Constructor Detail

      • CookieImpl

        public CookieImpl​(java.lang.String name,
                          java.lang.String value)
      • CookieImpl

        public CookieImpl​(java.lang.String name)
    • Method Detail

      • getName

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

        public java.lang.String getValue()
        Specified by:
        getValue in interface Cookie
      • getPath

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

        public java.lang.String getDomain()
        Specified by:
        getDomain in interface Cookie
      • getMaxAge

        public java.lang.Integer getMaxAge()
        Specified by:
        getMaxAge in interface Cookie
      • isDiscard

        public boolean isDiscard()
        Specified by:
        isDiscard in interface Cookie
      • isSecure

        public boolean isSecure()
        Specified by:
        isSecure in interface Cookie
      • getVersion

        public int getVersion()
        Specified by:
        getVersion in interface Cookie
      • isHttpOnly

        public boolean isHttpOnly()
        Specified by:
        isHttpOnly in interface Cookie
      • getExpires

        public java.util.Date getExpires()
        Specified by:
        getExpires in interface Cookie
      • getComment

        public java.lang.String getComment()
        Specified by:
        getComment in interface Cookie
      • setComment

        public Cookie setComment​(java.lang.String comment)
        Specified by:
        setComment in interface Cookie
      • isSameSite

        public boolean isSameSite()
        Specified by:
        isSameSite in interface Cookie
      • getSameSiteMode

        public java.lang.String getSameSiteMode()
        Specified by:
        getSameSiteMode in interface Cookie
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public final boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public final int compareTo​(java.lang.Object other)
        Specified by:
        compareTo in interface java.lang.Comparable
        Specified by:
        compareTo in interface Cookie
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object