MHttpDataOptimiser Class Reference

#include <mw/http/mhttpdataoptimiser.h>

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

Member Function 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.
Parameters
aDataIs the raw data received over the TCP connection.
aTransFailIf set to ETrue, sends the KErrHTTPOptimiserFailsTrans event to the client.
Leave Codes
KErrNoMemoryOn insuffcient memory conditions.

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.
Parameters
aEncodedDataOn return it contains the encoded message data.
Leave Codes
KErrNoMemoryOn insuffcient memory conditions.