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.
Constructor & Destructor Documentation
CHeaderFieldPart(THTTPHdrVal)
CHeaderFieldPart
|
(
|
THTTPHdrVal
|
aVal
|
)
|
[private, inline]
|
~CHeaderFieldPart()
~CHeaderFieldPart
|
(
|
)
|
[inline]
|
Member Functions Documentation
AddParam(CHeaderFieldParam *)
AddParamL(CHeaderFieldParam *)
Add a parameter to the header part. It is appended after any existing parameters.
Parameters
CHeaderFieldParam
* aParam
|
The parameter to be added. The header takes ownership of the new parameter.
|
ClosePropertySet(RHTTPPropertySet &)
NewL(THTTPHdrVal)
Create a new part, for the supplied
HTTP
value
Parameters
THTTPHdrVal
aVal
|
The 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)
Access the header parameters by index
Parameters
TInt
aIndex
|
The index of the desired parameter. 0 references the first one.
|
Parameter(RStringF)
Access the header parameters by parameter name Implementation of
CHeaderFieldPart
class ************************************************* Getter's
Parameters
RStringF
aParamName
|
The name of the desired part.
|
Parameters()
Access the parameters in this header part via an iterator
RemoveParam(CHeaderFieldParam *)
Remove the specified parameter from the header part.
Parameters
CHeaderFieldParam
* aParam
|
The parameter to be removed. The header deletes the removed parameter.
|
SetPropertySet(RHTTPPropertySet &)
SetValue(THTTPHdrVal)
Change the value held in this field part Setter's
Value()
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
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.