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 69 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 88 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 100 of file HttpCookies.d.

References setName(), and setValue().

void setName char[]  name  )  [inline]
 

Set the name of this cookie

Definition at line 112 of file HttpCookies.d.

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

void setValue char[]  value  )  [inline]
 

Set the value of this cookie

Definition at line 123 of file HttpCookies.d.

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

void setVersion uint  vrsn  )  [inline]
 

Set the version of this cookie

Definition at line 134 of file HttpCookies.d.

Referenced by CookieParser::next().

void setPath char[]  path  )  [inline]
 

Set the path of this cookie

Definition at line 145 of file HttpCookies.d.

Referenced by CookieParser::next().

void setDomain char[]  domain  )  [inline]
 

Set the domain of this cookie

Definition at line 156 of file HttpCookies.d.

Referenced by CookieParser::next().

void setComment char[]  comment  )  [inline]
 

Set the comment associated with this cookie

Definition at line 167 of file HttpCookies.d.

void setMaxAge long  maxAge  )  [inline]
 

Set the maximum duration of this cookie

Definition at line 178 of file HttpCookies.d.

void setSecure bool  secure  )  [inline]
 

Indicate wether this cookie should be considered secure or not

Definition at line 189 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 200 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 236 of file HttpCookies.d.

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


Member Data Documentation

char [] name [private]
 

Definition at line 71 of file HttpCookies.d.

char [] path [private]
 

Definition at line 71 of file HttpCookies.d.

Referenced by clear(), and write().

char [] value [private]
 

Definition at line 71 of file HttpCookies.d.

char [] domain [private]
 

Definition at line 71 of file HttpCookies.d.

Referenced by clear(), and write().

char [] comment [private]
 

Definition at line 71 of file HttpCookies.d.

Referenced by clear(), and write().

uint vrsn = 1 [private]
 

Definition at line 76 of file HttpCookies.d.

Referenced by clear(), and write().

long maxAge [private]
 

Definition at line 77 of file HttpCookies.d.

Referenced by clear(), and write().

bool secure [private]
 

Definition at line 78 of file HttpCookies.d.

Referenced by clear(), and write().


The documentation for this class was generated from the following file:
Generated on Tue Jan 25 21:18:32 2005 for Mango by doxygen 1.3.6