Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Cookie Class Reference

Inheritance diagram for Cookie:

IWritable List of all members.

Public Member Functions

 this ()
 this (char[] name, char[] value)
void setName (char[] name)
void setValue (char[] value)
void setVersion (uint vrsn)
void setPath (char[] path)
void setDomain (char[] domain)
void setComment (char[] comment)
void setMaxAge (long maxAge)
void setSecure (bool secure)
void write (IWriter writer)
void clear ()

Private Attributes

char[] name
char[] path
char[] value
char[] domain
char[] comment
uint vrsn = 1
long maxAge
bool secure

Detailed Description

Defines the Cookie class, and the means for reading & writing them. Cookie implementation conforms with RFC 2109, but supports parsing of server-side cookies only. Client-side cookies are supported in terms of output, but response parsing is not yet implemented ...

See over here for the RFC document.

Definition at line 66 of file HttpCookies.d.


Member Function Documentation

this  )  [inline]
 

Construct an empty client-side cookie. You add these to an output request using HttpClient.addCookie(), or the equivalent.

Definition at line 85 of file HttpCookies.d.

this char[]  name,
char[]  value
[inline]
 

Construct a cookie with the provided attributes. You add these to an output request using HttpClient.addCookie(), or the equivalent.

Definition at line 97 of file HttpCookies.d.

References setName(), and setValue().

void setName char[]  name  )  [inline]
 

Set the name of this cookie

Definition at line 109 of file HttpCookies.d.

Referenced by CookieParser::next(), and this().

void setValue char[]  value  )  [inline]
 

Set the value of this cookie

Definition at line 120 of file HttpCookies.d.

Referenced by CookieParser::next(), and this().

void setVersion uint  vrsn  )  [inline]
 

Set the version of this cookie

Definition at line 131 of file HttpCookies.d.

Referenced by CookieParser::next().

void setPath char[]  path  )  [inline]
 

Set the path of this cookie

Definition at line 142 of file HttpCookies.d.

Referenced by CookieParser::next().

void setDomain char[]  domain  )  [inline]
 

Set the domain of this cookie

Definition at line 153 of file HttpCookies.d.

Referenced by CookieParser::next().

void setComment char[]  comment  )  [inline]
 

Set the comment associated with this cookie

Definition at line 164 of file HttpCookies.d.

void setMaxAge long  maxAge  )  [inline]
 

Set the maximum duration of this cookie

Definition at line 175 of file HttpCookies.d.

void setSecure bool  secure  )  [inline]
 

Indicate wether this cookie should be considered secure or not

Definition at line 186 of file HttpCookies.d.

void write IWriter  writer  )  [inline]
 

Output the cookie as a text stream, via the provided IWriter.

Reimplemented from IWritable.

Definition at line 197 of file HttpCookies.d.

References comment, domain, maxAge, path, IWriter::put(), secure, and vrsn.

Referenced by HttpMutableCookies::add().

void clear  )  [inline]
 

Reset this cookie

Definition at line 233 of file HttpCookies.d.

References comment, domain, maxAge, path, secure, and vrsn.


Member Data Documentation

char [] name [private]
 

Definition at line 68 of file HttpCookies.d.

char [] path [private]
 

Definition at line 68 of file HttpCookies.d.

Referenced by clear(), and write().

char [] value [private]
 

Definition at line 68 of file HttpCookies.d.

char [] domain [private]
 

Definition at line 68 of file HttpCookies.d.

Referenced by clear(), and write().

char [] comment [private]
 

Definition at line 68 of file HttpCookies.d.

Referenced by clear(), and write().

uint vrsn = 1 [private]
 

Definition at line 73 of file HttpCookies.d.

Referenced by clear(), and write().

long maxAge [private]
 

Definition at line 74 of file HttpCookies.d.

Referenced by clear(), and write().

bool secure [private]
 

Definition at line 75 of file HttpCookies.d.

Referenced by clear(), and write().


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:01 2004 for Mango by doxygen 1.3.6