JavaScript is disabled on your browser.
gnu.inet.http

Class Cookie



  • public class Cookie
    extends java.lang.Object
    An HTTP cookie, as specified in RFC 2109.
    • Field Summary

      Fields
      Modifier and Type Field and Description
      protected java.lang.String comment
      Optional documentation of the intended use of the cookie.
      protected java.lang.String domain
      The domain for which the cookie is valid.
      protected java.util.Date expires
      The date at which this cookie expires.
      protected java.lang.String name
      The name of the cookie.
      protected java.lang.String path
      Optional subset of URL paths within the domain for which the cookie is valid.
      protected boolean secure
      Indicates that the user-agent should only use secure means to transmit this cookie to the server.
      protected java.lang.String value
      The value of the cookie.
    • Constructor Summary

      Constructors
      Constructor and Description
      Cookie (java.lang.String name, java.lang.String value, java.lang.String comment, java.lang.String domain, java.lang.String path, boolean secure, java.util.Date expires)
    • Method Summary

      Methods
      Modifier and Type Method and Description
      java.lang.String getComment ()
      java.lang.String getDomain ()
      java.util.Date getExpiryDate ()
      java.lang.String getName ()
      java.lang.String getPath ()
      java.lang.String getValue ()
      boolean isSecure ()
      java.lang.String toString ()
      java.lang.String toString (boolean showPath, boolean showDomain)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        protected final java.lang.String name
        The name of the cookie.
      • value

        protected final java.lang.String value
        The value of the cookie.
      • comment

        protected final java.lang.String comment
        Optional documentation of the intended use of the cookie.
      • domain

        protected final java.lang.String domain
        The domain for which the cookie is valid.
      • path

        protected final java.lang.String path
        Optional subset of URL paths within the domain for which the cookie is valid.
      • secure

        protected final boolean secure
        Indicates that the user-agent should only use secure means to transmit this cookie to the server.
      • expires

        protected final java.util.Date expires
        The date at which this cookie expires.
    • Constructor Detail

      • Cookie

        public Cookie(java.lang.String name,
         java.lang.String value,
         java.lang.String comment,
         java.lang.String domain,
         java.lang.String path,
         boolean secure,
         java.util.Date expires)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getValue

        public java.lang.String getValue()
      • getComment

        public java.lang.String getComment()
      • getDomain

        public java.lang.String getDomain()
      • getPath

        public java.lang.String getPath()
      • isSecure

        public boolean isSecure()
      • getExpiryDate

        public java.util.Date getExpiryDate()
      • toString

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

        public java.lang.String toString(boolean showPath,
         boolean showDomain)

AltStyle によって変換されたページ (->オリジナル) /