CHeaderFieldPart Class Reference

class CHeaderFieldPart : public CBase

Generalised representation of a single HTTP header value part. The part takes a value of one of the following three types:

  • integer, signed (i.e. can be -ve or +ve)

  • string token, which can represent free text (i.e. text with no special meaning; ETags; MD5 hashes; MIME types, etc.), enumerations (words with special meanings such as 'private', 'close', ') or URLs

  • Date/Time

In addition the part may have one or more parameters. These take the form of attribute-value pairs. They are implemented by the CHeaderFieldParam class.

Inherits from

Constructor & Destructor Documentation

CHeaderFieldPart(THTTPHdrVal)

CHeaderFieldPart(THTTPHdrValaVal)[private, inline]

Parameters

THTTPHdrVal aVal

~CHeaderFieldPart()

~CHeaderFieldPart()[inline]

Member Functions Documentation

AddParam(CHeaderFieldParam *)

TInt AddParam(CHeaderFieldParam *aParam)[inline]

Parameters

CHeaderFieldParam * aParam

AddParamL(CHeaderFieldParam *)

voidAddParamL(CHeaderFieldParam *aParam)[inline]

Add a parameter to the header part. It is appended after any existing parameters.

Parameters

CHeaderFieldParam * aParamThe parameter to be added. The header takes ownership of the new parameter.

ClosePropertySet(RHTTPPropertySet &)

voidClosePropertySet(RHTTPPropertySet &aPropertySet)[static, inline]

Parameters

RHTTPPropertySet & aPropertySet

New(THTTPHdrVal)

CHeaderFieldPart *New(THTTPHdrValaVal)[static, inline]

Parameters

THTTPHdrVal aVal

NewL(THTTPHdrVal)

CHeaderFieldPart *NewL(THTTPHdrValaVal)[static, inline]

Create a new part, for the supplied HTTP value

Parameters

THTTPHdrVal aValThe HTTP value for this part of the header field. A copy is taken when storing.

NumParameters()

TInt NumParameters()const [inline]

Obtain the number of parameters in this header

Parameter(TInt)

CHeaderFieldParam *Parameter(TIntaIndex)const [inline]

Access the header parameters by index

Parameters

TInt aIndexThe index of the desired parameter. 0 references the first one.

Parameter(RStringF)

CHeaderFieldParam *Parameter(RStringFaParamName)const

Access the header parameters by parameter name Implementation of CHeaderFieldPart class ************************************************* Getter's

Parameters

RStringF aParamNameThe name of the desired part.

Parameters()

THeaderFieldParamIter Parameters()const [inline]

Access the parameters in this header part via an iterator

RemoveParam(CHeaderFieldParam *)

TInt RemoveParam(CHeaderFieldParam *aParam)

Remove the specified parameter from the header part.

Parameters

CHeaderFieldParam * aParamThe parameter to be removed. The header deletes the removed parameter.

SetPropertySet(RHTTPPropertySet &)

voidSetPropertySet(RHTTPPropertySet &aPropertySet)[inline]

Parameters

RHTTPPropertySet & aPropertySet

SetValue(THTTPHdrVal)

voidSetValue(THTTPHdrValaVal)

Change the value held in this field part Setter's

Parameters

THTTPHdrVal aVal

Value()

THTTPHdrVal Value()const [inline]

Obtain the value held in this field part. The caller must call Copy() on the returned THTTPHdrVal if it is going to be stored. This is needed in order to correctly maintain string references.

Member Data Documentation

RPointerArray< CHeaderFieldParam > iParams

RPointerArray< CHeaderFieldParam >iParams[private]

THTTPHdrVal iValue

THTTPHdrVal iValue[private]