Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: cheadercodec.h
Link against: http.lib

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class CHeaderReader

class CHeaderReader : public CBase;

Description

An abstract HTTP header decoder. CHeaderReader provides an interface used by its owning codec to do conversion of header data from the raw representation used for a particular protocol/transport to the generic internal header representation. Specific sub-classes of CHeaderWriter are associated with specific protocol handlers.

Derivation

Members

Defined in CHeaderReader:
CHeaderReader(), ConstructL(), DecodeHeaderL(), Reserved1(), Reserved2(), ~CHeaderReader()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


~CHeaderReader()

virtual IMPORT_C ~CHeaderReader();

Description

Intended Usage: Destructor - cleans up and release resources to the system.


CHeaderReader()

protected: IMPORT_C CHeaderReader();

Description

Default constructor.


ConstructL()

protected: IMPORT_C void ConstructL();

Description

Second phase construction in which any necessary allocation is done Implementations of this interface may leave with standard errors like KErrNoMemory.

[Top]


Member functions


DecodeHeaderL()

virtual void DecodeHeaderL(RHeaderField &aHeader)=0;

Description

Intended Usage: Decodes the supplied header field. This method does a conversion of the field from the generic internal representation into raw form.

Specific header reader sub-classes must implement this method.

Implementations of this interface may leave with any of KErrHttpDecodeAccept, KErrHttpDecodeAcceptCharset, KErrHttpDecodeAcceptLanguage, KErrHttpDecodeAcceptEncoding, KErrNotSupported.

Parameters

RHeaderField &aHeader

(in) A proxy for the header field to be decoded


Reserved1()

private: inline virtual void Reserved1();

Description

Intended Usage: Reserve a slot in the v-table to preserve future BC


Reserved2()

private: inline virtual void Reserved2();

Description

Intended Usage: Reserve a slot in the v-table to preserve future BC