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

HttpMutableParams Class Reference

Inheritance diagram for HttpMutableParams:

HttpParams List of all members.

Public Member Functions

 this (IBuffer output)
 this (HttpMutableParams source)
HttpMutableParams clone ()
void add (char[] name, char[] value)
void addInt (char[] name, int value)
void addDate (char[] name, long value)

Private Types

typedef HttpTokens parse parse

Private Member Functions

void parse (IBuffer input)
 this (HttpParams source)
 this (char seperator, bool inclusive=false)
 this (HttpTokens source)
void add (char[] name, void(*dg)(IBuffer))

Static Private Member Functions

 this ()

Detailed Description

HttpMutableParams are used for output purposes. This can be used to add a set of queries and then combine then into a text string using method write().

Definition at line 134 of file HttpParams.d.


Member Typedef Documentation

typedef HttpTokens parse parse [inherited]
 

Definition at line 63 of file HttpParams.d.

Referenced by HttpRequest::getInputParameters().


Member Function Documentation

this IBuffer  output  )  [inline]
 

Construct output params upon the provided IBuffer

Definition at line 142 of file HttpParams.d.

this HttpMutableParams  source  )  [inline]
 

Clone a source set of HttpMutableParams

Definition at line 154 of file HttpParams.d.

HttpMutableParams clone  )  [inline]
 

Clone this set of HttpMutableParams

Reimplemented from HttpParams.

Definition at line 165 of file HttpParams.d.

void add char[]  name,
char[]  value
[inline]
 

Add a name/value pair to the query list

Reimplemented from HttpTokens.

Definition at line 176 of file HttpParams.d.

void addInt char[]  name,
int  value
[inline]
 

Add a name/integer pair to the query list

Reimplemented from HttpTokens.

Definition at line 187 of file HttpParams.d.

void addDate char[]  name,
long  value
[inline]
 

Add a name/date(long) pair to the query list

Reimplemented from HttpTokens.

Definition at line 199 of file HttpParams.d.

void parse IBuffer  input  )  [inline, inherited]
 

Read all query parameters. Everything is mapped rather than being allocated & copied

Reimplemented from HttpTokens.

Definition at line 117 of file HttpParams.d.

References HttpParams::amp, Token::getLength(), BoundToken::next(), TokenStack::push(), and HttpTokens::setParsed().

this  )  [inline, static, inherited]
 

Setup a token for extracting each query construct

Reimplemented from HttpTokens.

Definition at line 71 of file HttpParams.d.

References HttpParams::amp.

this HttpParams  source  )  [inline, inherited]
 

Clone a source set of HttpParams

Definition at line 94 of file HttpParams.d.

this char  seperator,
bool  inclusive = false
[inline, inherited]
 

Construct a set of tokens based upon the given delimeter, and an indication of whether said delimeter should be considered part of the left side (effectively the name).

The latter is useful with headers, since the seperating ':' character should really be considered part of the name for purposes of subsequent token matching.

Definition at line 113 of file HttpTokens.d.

References HttpTokens::inclusive, HttpTokens::seperator, HttpTokens::sepString, and TokenStack.

this HttpTokens  source  )  [inline, inherited]
 

Clone a source set of HttpTokens

Definition at line 133 of file HttpTokens.d.

References TokenStack::clone(), HttpTokens::inclusive, HttpTokens::seperator, and HttpTokens::sepString.

void add char[]  name,
void(*  dg)(IBuffer)
[inline, protected, inherited]
 

Add a token with the given name. The content is provided via the specified delegate. We stuff this name & content into the output buffer, and map a new Token onto the appropriate buffer slice.

Definition at line 439 of file HttpTokens.d.

References IBuffer::append(), IBuffer::getLimit(), HttpTokens::inclusive, TokenStack::push(), HttpTokens::sepString, and IBuffer::toString().

Referenced by HttpTokens::add(), HttpTokens::addDate(), and HttpTokens::addInt().


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