MHttpDataOptimiser Class Reference
#include
<mw/http/mhttpdataoptimiser.h>
Member Function Documentation
DecodeL ( const TDesC8 &, HBufC8 *&, TBool & )
void | DecodeL | ( | 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.
Parameter | Description | aData | Is the raw data received over the TCP connection. |
aTransFail | If set to ETrue, sends the KErrHTTPOptimiserFailsTrans event to the client. |
EncodeL ( const TDesC8 &, HBufC8 *& )
void | EncodeL | ( | 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.
Parameter | Description | aEncodedData | On return it contains the encoded message data. |