Class Cookie

    • Constructor Summary

      Constructors 
      Constructor Description
      Cookie()
      Default constructor.
      Cookie​(int version, java.lang.String name, java.lang.String value)
      Constructor.
      Cookie​(int version, java.lang.String name, java.lang.String value, java.lang.String path, java.lang.String domain)
      Constructor.
      Cookie​(java.lang.String name, java.lang.String value)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      java.lang.String getDomain()
      Returns the domain name.
      java.lang.String getName()
      Returns the name.
      java.lang.String getPath()
      Returns the validity path.
      java.lang.String getValue()
      Returns the value.
      int getVersion()
      Returns the cookie specification version.
      int hashCode()
      void setDomain​(java.lang.String domain)
      Sets the domain name.
      void setName​(java.lang.String name)
      Sets the name.
      void setPath​(java.lang.String path)
      Sets the validity path.
      void setValue​(java.lang.String value)
      Sets the value.
      void setVersion​(int version)
      Sets the cookie specification version.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Cookie

        public Cookie()
        Default constructor.
      • Cookie

        public Cookie​(int version,
                      java.lang.String name,
                      java.lang.String value)
        Constructor.
        Parameters:
        version - The version number.
        name - The name.
        value - The value.
      • Cookie

        public Cookie​(int version,
                      java.lang.String name,
                      java.lang.String value,
                      java.lang.String path,
                      java.lang.String domain)
        Constructor.
        Parameters:
        version - The version number.
        name - The name.
        value - The value.
        path - The validity path.
        domain - The domain name.
      • Cookie

        public Cookie​(java.lang.String name,
                      java.lang.String value)
        Constructor.
        Parameters:
        name - The name.
        value - The value.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getDomain

        public java.lang.String getDomain()
        Returns the domain name.
        Returns:
        The domain name.
      • getName

        public java.lang.String getName()
        Returns the name.
        Specified by:
        getName in interface NamedValue<java.lang.String>
        Returns:
        The name.
      • getPath

        public java.lang.String getPath()
        Returns the validity path.
        Returns:
        The validity path.
      • getValue

        public java.lang.String getValue()
        Returns the value.
        Specified by:
        getValue in interface NamedValue<java.lang.String>
        Returns:
        The value.
      • getVersion

        public int getVersion()
        Returns the cookie specification version.
        Returns:
        The cookie specification version.
      • hashCode

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

        public void setDomain​(java.lang.String domain)
        Sets the domain name.
        Parameters:
        domain - The domain name.
      • setName

        public void setName​(java.lang.String name)
        Sets the name.
        Parameters:
        name - The name.
      • setPath

        public void setPath​(java.lang.String path)
        Sets the validity path.
        Parameters:
        path - The validity path.
      • setValue

        public void setValue​(java.lang.String value)
        Sets the value.
        Specified by:
        setValue in interface NamedValue<java.lang.String>
        Parameters:
        value - The value.
      • setVersion

        public void setVersion​(int version)
        Sets the cookie specification version.
        Parameters:
        version - The cookie specification version.
      • toString

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