CHTTPResponse Class Reference

class CHTTPResponse : public CBase

Inherits from

Public Member Functions
~CHTTPResponse ()
IMPORT_C void AddResponse ( HBufC8 *)
IMPORT_C TBool CharSet ( TPtrC8 &)
IMPORT_C void ContentType ( TPtrC8 &)
IMPORT_C THttpStatusCode DetailedStatusCode ()
IMPORT_C TBool ExtractCacheControlTime ( TCacheControlFieldValue , TTime &)
IMPORT_C TBool FindBinaryDescField ( THttpHeaderField , TPtrC8 &, TInt )
IMPORT_C TInt FindCacheControlFieldValue ( TCacheControlFieldValue )
IMPORT_C TBool FindField ( THttpHeaderField , TPtrC8 &, TInt )
IMPORT_C TBool FindField ( THttpHeaderField , TTime &, TInt )
IMPORT_C TBool FindRealm ( TPtrC8 &)
IMPORT_C CHTTPResponse * NewL ()
IMPORT_C void Reset ()
IMPORT_C HBufC8 & Response ()
IMPORT_C void SetStatusCode ( TInt )
IMPORT_C THttpStatusCode StatusCode ()
Protected Member Functions
CHTTPResponse ()
IMPORT_C const TText8 * CharSet ( TInt )
IMPORT_C void ConstructL ()
IMPORT_C const TText8 * ContentType ( TInt )
IMPORT_C TInt LocateField ( THttpHeaderField , TInt )
Private Member Functions
IMPORT_C TAny * Extend_CHTTPResponse ( TAny *)
IMPORT_C TAny * Extend_CHTTPResponse_const ( TAny *)
void ExtractFieldDateValue (const TPtrC8 &, TInt , TTime &)
void ExtractMultiOctetInteger ( TInt &, const TPtrC8 &)
TInt FindCacheControlFieldValue ( TCacheControlFieldValue , TPtrC8 &)
void Panic ( THttpPanicCode )
TInt ParseUIntVar (const TDesC8 &, TInt &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
THttpStatusCode iDetailedStatusCode
HBufC8 * iResponse
THttpStatusCode iStatusCode

Constructor & Destructor Documentation

CHTTPResponse()

IMPORT_C CHTTPResponse ( ) [protected]

~CHTTPResponse()

IMPORT_C ~CHTTPResponse ( ) [virtual]

Member Functions Documentation

AddResponse(HBufC8 *)

IMPORT_C void AddResponse ( HBufC8 * aResponse )

Parameters

HBufC8 * aResponse

CharSet(TPtrC8 &)

IMPORT_C TBool CharSet ( TPtrC8 & aDesc ) const

Parameters

TPtrC8 & aDesc

CharSet(TInt)

IMPORT_C const TText8 * CharSet ( TInt aCharsetCode ) const [protected]

Parameters

TInt aCharsetCode

ConstructL()

IMPORT_C void ConstructL ( ) [protected]

ContentType(TPtrC8 &)

IMPORT_C void ContentType ( TPtrC8 & aDesc ) const

Parameters

TPtrC8 & aDesc

ContentType(TInt)

IMPORT_C const TText8 * ContentType ( TInt aContentTypeCode ) const [protected]

Parameters

TInt aContentTypeCode

DetailedStatusCode()

IMPORT_C THttpStatusCode DetailedStatusCode ( ) const

Extend_CHTTPResponse(TAny *)

IMPORT_C TAny * Extend_CHTTPResponse ( TAny * aArgs ) [private, virtual]

Parameters

TAny * aArgs

Extend_CHTTPResponse_const(TAny *)

IMPORT_C TAny * Extend_CHTTPResponse_const ( TAny * aArgs ) const [private, virtual]

Parameters

TAny * aArgs

ExtractCacheControlTime(TCacheControlFieldValue, TTime &)

IMPORT_C TBool ExtractCacheControlTime ( TCacheControlFieldValue aField,
TTime & aTime
) const

Parameters

TCacheControlFieldValue aField
TTime & aTime

ExtractFieldDateValue(const TPtrC8 &, TInt, TTime &)

void ExtractFieldDateValue ( const TPtrC8 & aSource,
TInt aFrom,
TTime & aTime
) const [private]

Parameters

const TPtrC8 & aSource
TInt aFrom
TTime & aTime

ExtractMultiOctetInteger(TInt &, const TPtrC8 &)

void ExtractMultiOctetInteger ( TInt & aInt,
const TPtrC8 & aSource
) const [private]

Parameters

TInt & aInt
const TPtrC8 & aSource

FindBinaryDescField(THttpHeaderField, TPtrC8 &, TInt)

IMPORT_C TBool FindBinaryDescField ( THttpHeaderField aField,
TPtrC8 & aDesc,
TInt aStartIndex = 0
) const

Parameters

THttpHeaderField aField
TPtrC8 & aDesc
TInt aStartIndex = 0

FindCacheControlFieldValue(TCacheControlFieldValue)

IMPORT_C TInt FindCacheControlFieldValue ( TCacheControlFieldValue aField ) const

Parameters

TCacheControlFieldValue aField

FindCacheControlFieldValue(TCacheControlFieldValue, TPtrC8 &)

TInt FindCacheControlFieldValue ( TCacheControlFieldValue aField,
TPtrC8 & aCacheControl
) const [private]

Parameters

TCacheControlFieldValue aField
TPtrC8 & aCacheControl

FindField(THttpHeaderField, TPtrC8 &, TInt)

IMPORT_C TBool FindField ( THttpHeaderField aField,
TPtrC8 & aDesc,
TInt aStartIndex = 0
) const

Parameters

THttpHeaderField aField
TPtrC8 & aDesc
TInt aStartIndex = 0

FindField(THttpHeaderField, TTime &, TInt)

IMPORT_C TBool FindField ( THttpHeaderField aField,
TTime & aTime,
TInt aStartIndex = 0
) const

Parameters

THttpHeaderField aField
TTime & aTime
TInt aStartIndex = 0

FindRealm(TPtrC8 &)

IMPORT_C TBool FindRealm ( TPtrC8 & aRealm ) const

Parameters

TPtrC8 & aRealm

LocateField(THttpHeaderField, TInt)

IMPORT_C TInt LocateField ( THttpHeaderField aField,
TInt aStartIndex = 0
) const [protected]

Parameters

THttpHeaderField aField
TInt aStartIndex = 0

NewL()

IMPORT_C CHTTPResponse * NewL ( ) [static]

Panic(THttpPanicCode)

void Panic ( THttpPanicCode aPanicCode ) const [private]

Parameters

THttpPanicCode aPanicCode

ParseUIntVar(const TDesC8 &, TInt &)

TInt ParseUIntVar ( const TDesC8 & aBuffer,
TInt & aVal
) const [private]

Parameters

const TDesC8 & aBuffer
TInt & aVal

Reset()

IMPORT_C void Reset ( )

Response()

IMPORT_C HBufC8 & Response ( ) const

SetStatusCode(TInt)

IMPORT_C void SetStatusCode ( TInt aCode )

Parameters

TInt aCode

StatusCode()

IMPORT_C THttpStatusCode StatusCode ( ) const

Member Data Documentation

THttpStatusCode iDetailedStatusCode

THttpStatusCode iDetailedStatusCode [private]

HBufC8 * iResponse

HBufC8 * iResponse [private]

THttpStatusCode iStatusCode

THttpStatusCode iStatusCode [private]