Filter from serialized LLSD to an XMLRPC response. More...
#include <llfiltersd2xmlrpc.h>
Public Member Functions | |
LLFilterSD2XMLRPCResponse () | |
Protected Member Functions | |
virtual EStatus | process_impl (const LLChannelDescriptors &channels, buffer_ptr_t &buffer, bool &eos, LLSD &context, LLPumpIO *pump) |
Process the data in buffer. |
Filter from serialized LLSD to an XMLRPC response.
This class filters a serialized LLSD object to an xmlrpc repsonse. Since resonses are limited to a single param, the xmlrprc response only serializes it as one object. This class correctly handles normal llsd responses as well as llsd rpc faults.
For example, if given: {'response':[ i200, r3.4, {"foo":"bar"} ]}
Would generate: <?xml version="1.0"?> <methodResponse><params><array><data>
<int>200</int>
<double>3.4</double>
<struct><member> <name>foo</name>
<string>bar</string>
</member> </struct>
</data></array>
</params></methodResponse>
LLFilterSD2XMLRPCResponse::LLFilterSD2XMLRPCResponse | ( | ) |