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


Member Function Documentation

this  )  [inline, static]
 

Setup the parser for server-side cookies

Definition at line 352 of file HttpCookies.d.

References parser.

this HttpHeaders  headers  )  [inline]
 

Construct cookie wrapper with the provided headers.

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

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

void reset  )  [inline]
 

Reset these cookies for another parse

Definition at line 392 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 405 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 338 of file HttpCookies.d.

Referenced by parse(), and reset().

Cookie cookie [private]
 

Definition at line 339 of file HttpCookies.d.

Referenced by write().

IBuffer buffer [private]
 

Definition at line 340 of file HttpCookies.d.

CookieStack stack [private]
 

Definition at line 341 of file HttpCookies.d.

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

HttpHeaders headers [private]
 

Definition at line 342 of file HttpCookies.d.

Referenced by parse(), and this().

CookieParser parser [static, private]
 

Definition at line 344 of file HttpCookies.d.

Referenced by parse(), and this().


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