MHttpDataOptimiser Class Reference

class MHttpDataOptimiser
Public Member Functions
voidDecodeL(const TDesC8 &, HBufC8 *&, TBool &)
voidEncodeL(const TDesC8 &, HBufC8 *&)

Member Functions Documentation

DecodeL(const TDesC8 &, HBufC8 *&, TBool &)

voidDecodeL(const TDesC8 &aData,
HBufC8 *&aHttpData,
TBool &aTransFail
)[pure virtual]
This method converts the data from the proprietary protocol format to the HTTP format. It is the responsibility of the implementation to allocate the required buffer for the encoded data. It is the responsibility of the caller to free the allocated memory.
leave
KErrNoMemory On insuffcient memory conditions.

Parameters

const TDesC8 & aDataIs the raw data received over the TCP connection.
HBufC8 *& aHttpData
TBool & aTransFailIf set to ETrue, sends the KErrHTTPOptimiserFailsTrans event to the client.

EncodeL(const TDesC8 &, HBufC8 *&)

voidEncodeL(const TDesC8 &aHttpData,
HBufC8 *&aEncodedData
)[pure virtual]
This method converts the HTTP message data to the proprietary protocol format. It is the responsibility of the implementation to allocate the required buffer for the encoded data. It is the responsibility of the caller to free the allocated memory.
leave
KErrNoMemory On insuffcient memory conditions.

Parameters

const TDesC8 & aHttpData
HBufC8 *& aEncodedDataOn return it contains the encoded message data.