Kafenio.editor 0.8.5

de.xeinfach.kafenio.urlfetch
Class Cookie

java.lang.Object
  extended byde.xeinfach.kafenio.urlfetch.Cookie

public class Cookie
extends java.lang.Object

Description: Encapsulates information about an HTTP cookie.

Author:
Todd Wilson, modified by Karsten Pawlik

Constructor Summary
Cookie(java.lang.String rawCookie)
          The constructor.Takes a string representing a cookie, parses, the string and populates itself with the corresponding data.
 
Method Summary
 java.lang.String getDomain()
          Indicates the domain the cookie corresponds to.
 java.lang.String getExpires()
          Indicates when the cookie is to expire.
 java.lang.String getKey()
          Returns the key portion of the key/value portion of the cookie.
 java.lang.String getKeyValue()
          Returns the key/value portion of the string.
 java.lang.String getPath()
          Indicates the path the cookie corresponds to.
 java.lang.String getValue()
          Returns the value portion of the key/value portion of the cookie.
 void setDomain(java.lang.String newDomain)
          Sets the domain the cookie is to correspond to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cookie

public Cookie(java.lang.String rawCookie)
The constructor.Takes a string representing a cookie, parses, the string and populates itself with the corresponding data.

Parameters:
rawCookie - The string representing the cookie.
Method Detail

getKeyValue

public java.lang.String getKeyValue()
Returns the key/value portion of the string.

Returns:
A string representing the key and value (e.g. foo=bar).

getKey

public java.lang.String getKey()
Returns the key portion of the key/value portion of the cookie.

Returns:
The key.

getValue

public java.lang.String getValue()
Returns the value portion of the key/value portion of the cookie.

Returns:
The key.

getExpires

public java.lang.String getExpires()
Indicates when the cookie is to expire.

Returns:
The expiration date. An empty string if none exists.

getDomain

public java.lang.String getDomain()
Indicates the domain the cookie corresponds to.

Returns:
The domain. An empty string if none exists.

setDomain

public void setDomain(java.lang.String newDomain)
Sets the domain the cookie is to correspond to.

Parameters:
newDomain - The domain.

getPath

public java.lang.String getPath()
Indicates the path the cookie corresponds to.

Returns:
The path. An empty string if none exists.

Kafenio.editor 0.8.5

Copyright © 2003-2004 by Karsten Pawlik. All Rights Reserved. Published under the Lesser General Public License (LGPL)