#include "linden_common.h"
#include "llfiltersd2xmlrpc.h"
#include <sstream>
#include <iterator>
#include <xmlrpc-epi/xmlrpc.h>
#include "apr-1/apr_base64.h"
#include "llbuffer.h"
#include "llbufferstream.h"
#include "llmemorystream.h"
#include "llsd.h"
#include "llsdserialize.h"
#include "lluuid.h"
Include dependency graph for llfiltersd2xmlrpc.cpp:
Go to the source code of this file.
Functions | |
std::string | xml_escape_string (const std::string &in) |
This function takes string, and escapes it appropritately for inclusion as xml data. | |
LLIOPipe::EStatus | stream_out (std::ostream &ostr, XMLRPC_VALUE value) |
Variables | |
static const char | XML_HEADER [] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" |
static const char | XMLRPC_REQUEST_HEADER_1 [] = "<methodCall><methodName>" |
static const char | XMLRPC_REQUEST_HEADER_2 [] = "</methodName><params>" |
static const char | XMLRPC_REQUEST_FOOTER [] = "</params></methodCall>" |
static const char | XMLRPC_METHOD_RESPONSE_HEADER [] = "<methodResponse>" |
static const char | XMLRPC_METHOD_RESPONSE_FOOTER [] = "</methodResponse>" |
static const char | XMLRPC_RESPONSE_HEADER [] = "<params><param>" |
static const char | XMLRPC_RESPONSE_FOOTER [] = "</param></params>" |
static const char | XMLRPC_FAULT_1 [] = "<fault><value><struct><member><name>faultCode</name><value><int>" |
static const char | XMLRPC_FAULT_2 [] = "</int></value></member><member><name>faultString</name><value><string>" |
static const char | XMLRPC_FAULT_3 [] = "</string></value></member></struct></value></fault>" |
static const char | LLSDRPC_RESPONSE_HEADER [] = "{'response':" |
static const char | LLSDRPC_RESPONSE_FOOTER [] = "}" |
const char | LLSDRPC_REQUEST_HEADER_1 [] = "{'method':'" |
Externally available constants. | |
const char | LLSDRPC_REQUEST_HEADER_2 [] = "', 'parameter': " |
const char | LLSDRPC_REQUEST_FOOTER [] = "}" |
static const char | LLSDRPC_FAULT_HADER_1 [] = "{ 'fault': {'code':i" |
static const char | LLSDRPC_FAULT_HADER_2 [] = ", 'description':" |
static const char | LLSDRPC_FAULT_FOOTER [] = "} }" |
static const S32 | DEFAULT_PRECISION = 20 |
Copyright (c) 2005-2007, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file llfiltersd2xmlrpc.cpp.
LLIOPipe::EStatus stream_out | ( | std::ostream & | ostr, | |
XMLRPC_VALUE | value | |||
) |
Definition at line 496 of file llfiltersd2xmlrpc.cpp.
References LLSDNotationFormatter::escapeString(), llendl, llwarns, S32, LLIOPipe::STATUS_ERROR, LLIOPipe::STATUS_OK, and type.
Referenced by LLFilterXMLRPCRequest2LLSD::process_impl(), and LLFilterXMLRPCResponse2LLSD::process_impl().
std::string xml_escape_string | ( | const std::string & | in | ) |
This function takes string, and escapes it appropritately for inclusion as xml data.
Definition at line 131 of file llfiltersd2xmlrpc.cpp.
References end.
Referenced by idle_startup(), LLFilterSD2XMLRPCRequest::process_impl(), LLFilterSD2XMLRPCResponse::process_impl(), and LLFilterSD2XMLRPC::streamOut().
const S32 DEFAULT_PRECISION = 20 [static] |
Definition at line 118 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterXMLRPCRequest2LLSD::process_impl(), LLFilterXMLRPCResponse2LLSD::process_impl(), LLFilterSD2XMLRPCRequest::process_impl(), and LLFilterSD2XMLRPCResponse::process_impl().
const char LLSDRPC_FAULT_FOOTER[] = "} }" [static] |
Definition at line 117 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterXMLRPCResponse2LLSD::process_impl().
const char LLSDRPC_FAULT_HADER_1[] = "{ 'fault': {'code':i" [static] |
Definition at line 115 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterXMLRPCResponse2LLSD::process_impl().
const char LLSDRPC_FAULT_HADER_2[] = ", 'description':" [static] |
Definition at line 116 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterXMLRPCResponse2LLSD::process_impl().
const char LLSDRPC_REQUEST_FOOTER[] = "}" |
Definition at line 114 of file llfiltersd2xmlrpc.cpp.
Referenced by LLSDRPCClient::call(), and LLFilterXMLRPCRequest2LLSD::process_impl().
const char LLSDRPC_REQUEST_HEADER_1[] = "{'method':'" |
Externally available constants.
Definition at line 112 of file llfiltersd2xmlrpc.cpp.
Referenced by LLSDRPCClient::call(), and LLFilterXMLRPCRequest2LLSD::process_impl().
const char LLSDRPC_REQUEST_HEADER_2[] = "', 'parameter': " |
Definition at line 113 of file llfiltersd2xmlrpc.cpp.
Referenced by LLSDRPCClient::call(), and LLFilterXMLRPCRequest2LLSD::process_impl().
const char LLSDRPC_RESPONSE_FOOTER[] = "}" [static] |
Definition at line 111 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterXMLRPCResponse2LLSD::process_impl().
const char LLSDRPC_RESPONSE_HEADER[] = "{'response':" [static] |
Definition at line 110 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterXMLRPCResponse2LLSD::process_impl().
const char XML_HEADER[] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" [static] |
String constants
Definition at line 99 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterSD2XMLRPCRequest::process_impl(), LLFilterSD2XMLRPCResponse::process_impl(), and LLUICtrlFactory::saveToXML().
const char XMLRPC_FAULT_1[] = "<fault><value><struct><member><name>faultCode</name><value><int>" [static] |
Definition at line 107 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterSD2XMLRPCResponse::process_impl().
const char XMLRPC_FAULT_2[] = "</int></value></member><member><name>faultString</name><value><string>" [static] |
Definition at line 108 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterSD2XMLRPCResponse::process_impl().
const char XMLRPC_FAULT_3[] = "</string></value></member></struct></value></fault>" [static] |
Definition at line 109 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterSD2XMLRPCResponse::process_impl().
const char XMLRPC_METHOD_RESPONSE_FOOTER[] = "</methodResponse>" [static] |
Definition at line 104 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterSD2XMLRPCResponse::process_impl().
const char XMLRPC_METHOD_RESPONSE_HEADER[] = "<methodResponse>" [static] |
Definition at line 103 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterSD2XMLRPCResponse::process_impl().
const char XMLRPC_REQUEST_FOOTER[] = "</params></methodCall>" [static] |
Definition at line 102 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterSD2XMLRPCRequest::process_impl().
const char XMLRPC_REQUEST_HEADER_1[] = "<methodCall><methodName>" [static] |
Definition at line 100 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterSD2XMLRPCRequest::process_impl().
const char XMLRPC_REQUEST_HEADER_2[] = "</methodName><params>" [static] |
Definition at line 101 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterSD2XMLRPCRequest::process_impl().
const char XMLRPC_RESPONSE_FOOTER[] = "</param></params>" [static] |
Definition at line 106 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterSD2XMLRPCResponse::process_impl().
const char XMLRPC_RESPONSE_HEADER[] = "<params><param>" [static] |
Definition at line 105 of file llfiltersd2xmlrpc.cpp.
Referenced by LLFilterSD2XMLRPCResponse::process_impl().