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

HttpCookies Class Reference

Inheritance diagram for HttpCookies:

IWritable List of all members.

Public Member Functions

 this (HttpHeaders headers)
void write (IWriter writer)
void reset ()
CookieStack parse ()

Static Public Member Functions

static this ()

Private Attributes

bool parsed
Cookie cookie
IBuffer buffer
CookieStack stack
HttpHeaders headers

Static Private Attributes

static CookieParser parser

Detailed Description

This is the support point for server-side cookies. It wraps a CookieStack together with a set of HttpHeaders, along with the appropriate cookie parser. One would do something very similar for client side cookie parsing also.

Definition at line 347 of file HttpCookies.d.


Member Function Documentation

static this  )  [inline, static]
 

Setup the parser for server-side cookies

Definition at line 363 of file HttpCookies.d.

References parser.

this HttpHeaders  headers  )  [inline]
 

Construct cookie wrapper with the provided headers.

Definition at line 374 of file HttpCookies.d.

References buffer, headers, and stack.

void write IWriter  writer  )  [inline]
 

Output each of the cookies parsed to the provided IWriter.

Reimplemented from IWritable.

Definition at line 391 of file HttpCookies.d.

References cookie, IWriter::cr(), parse(), and IWriter::put().

void reset  )  [inline]
 

Reset these cookies for another parse

Definition at line 403 of file HttpCookies.d.

References parsed, CookieStack::reset(), and stack.

Referenced by HttpRequest::reset().

CookieStack parse  )  [inline]
 

Parse all cookies from our HttpHeaders, pushing each onto the CookieStack as we go.

Definition at line 416 of file HttpCookies.d.

References buffer, headers, CookieParser::next(), parsed, parser, IBuffer::setValidContent(), and stack.

Referenced by write().


Member Data Documentation

bool parsed [private]
 

Definition at line 349 of file HttpCookies.d.

Referenced by parse(), and reset().

Cookie cookie [private]
 

Definition at line 350 of file HttpCookies.d.

Referenced by write().

IBuffer buffer [private]
 

Definition at line 351 of file HttpCookies.d.

Referenced by parse(), and this().

CookieStack stack [private]
 

Definition at line 352 of file HttpCookies.d.

Referenced by parse(), reset(), and this().

HttpHeaders headers [private]
 

Definition at line 353 of file HttpCookies.d.

Referenced by parse(), and this().

CookieParser parser [static, private]
 

Definition at line 355 of file HttpCookies.d.

Referenced by parse(), and this().


The documentation for this class was generated from the following file:
Generated on Sat Dec 24 17:28:39 2005 for Mango by  doxygen 1.4.0