org.restlet.gwt.data
Class Cookie

java.lang.Object
  extended by org.restlet.gwt.data.Parameter
      extended by org.restlet.gwt.data.Cookie
All Implemented Interfaces:
java.lang.Comparable<Parameter>
Direct Known Subclasses:
CookieSetting

public class Cookie
extends Parameter

Cookie provided by a client.

Author:
Jerome Louvel

Constructor Summary
Cookie()
          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
 boolean equals(java.lang.Object obj)
          
 java.lang.String getDomain()
          Returns the domain name.
 java.lang.String getPath()
          Returns the validity path.
 int getVersion()
          Returns the cookie specification version.
 int hashCode()
          
 void setDomain(java.lang.String domain)
          Sets the domain name.
 void setPath(java.lang.String path)
          Sets the validity path.
 void setVersion(int version)
          Sets the cookie specification version.
 
Methods inherited from class org.restlet.gwt.data.Parameter
compareTo, encode, encode, getName, getValue, setName, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cookie

public Cookie()
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 Parameter

getDomain

public java.lang.String getDomain()
Returns the domain name.

Returns:
The domain name.

getPath

public java.lang.String getPath()
Returns the validity path.

Returns:
The validity path.

getVersion

public int getVersion()
Returns the cookie specification version.

Returns:
The cookie specification version.

hashCode

public int hashCode()

Overrides:
hashCode in class Parameter

setDomain

public void setDomain(java.lang.String domain)
Sets the domain name.

Parameters:
domain - The domain name.

setPath

public void setPath(java.lang.String path)
Sets the validity path.

Parameters:
path - The validity path.

setVersion

public void setVersion(int version)
Sets the cookie specification version.

Parameters:
version - The cookie specification version.


Copyright © 2005-2008 Noelios Technologies.