org.jdesktop.http
Class Cookie

java.lang.Object
  extended by org.jdesktop.beans.AbstractBean
      extended by org.jdesktop.http.NameValuePair
          extended by org.jdesktop.http.Cookie
All Implemented Interfaces:
Cloneable

public class Cookie
extends NameValuePair

Doesn't yet support Cookie2.


Constructor Summary
Cookie()
           
 
Method Summary
 String getComment()
           
 String getDomain()
           
 int getMaxAge()
           
 String getPath()
           
 int getVersion()
           
 boolean isSecure()
           
static Cookie parseCookie(String s)
           
 void setComment(String comment)
           
 void setDomain(String domain)
           
 void setMaxAge(int age)
           
 void setPath(String path)
           
 void setSecure(boolean secure)
           
 void setVersion(int version)
           
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class org.jdesktop.http.NameValuePair
clone, getName, getValue, setName, setValue
 
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cookie

public Cookie()
Method Detail

setComment

public void setComment(String comment)

getComment

public String getComment()

setDomain

public void setDomain(String domain)

getDomain

public String getDomain()

setMaxAge

public void setMaxAge(int age)

getMaxAge

public int getMaxAge()

setPath

public void setPath(String path)

getPath

public String getPath()

setSecure

public void setSecure(boolean secure)

isSecure

public boolean isSecure()

setVersion

public void setVersion(int version)

getVersion

public int getVersion()

toString

public String toString()
Description copied from class: java.lang.Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class NameValuePair
Returns:
a string representation of the object.

parseCookie

public static Cookie parseCookie(String s)
                          throws RuntimeException
Throws:
RuntimeException