Main Page | Class Hierarchy | Alphabetical List | Class List | 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

 this ()

Private Attributes

bool parsed
Cookie cookie
IBuffer buffer
CookieStack stack
HttpHeaders headers

Static Private Attributes

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 341 of file HttpCookies.d.


Member Function Documentation

this  )  [inline, static]
 

Setup the parser for server-side cookies

Definition at line 357 of file HttpCookies.d.

References parser.

this HttpHeaders  headers  )  [inline]
 

Construct cookie wrapper with the provided headers.

Definition at line 368 of file HttpCookies.d.

References headers, and stack.

void write IWriter  writer  )  [inline]
 

Output each of the cookies parsed to the provided IWriter.

Reimplemented from IWritable.

Definition at line 385 of file HttpCookies.d.

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

void reset  )  [inline]
 

Reset these cookies for another parse

Definition at line 397 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 410 of file HttpCookies.d.

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

Referenced by write().


Member Data Documentation

bool parsed [private]
 

Definition at line 343 of file HttpCookies.d.

Referenced by parse(), and reset().

Cookie cookie [private]
 

Definition at line 344 of file HttpCookies.d.

Referenced by write().

IBuffer buffer [private]
 

Definition at line 345 of file HttpCookies.d.

CookieStack stack [private]
 

Definition at line 346 of file HttpCookies.d.

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

HttpHeaders headers [private]
 

Definition at line 347 of file HttpCookies.d.

Referenced by parse(), and this().

CookieParser parser [static, private]
 

Definition at line 349 of file HttpCookies.d.

Referenced by parse(), and this().


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 00:31:09 2005 for Mango by doxygen 1.3.6