llfiltersd2xmlrpc.cpp File Reference

#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


Detailed Description

Author:
Phoenix
Date:
2005-04-26
LicenseInfo
firstyear=2005&license=viewergpl

Copyright (c) 2005-2008, 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://secondlifegrid.net/programs/open_source/licensing/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://secondlifegrid.net/programs/open_source/licensing/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.


Function Documentation

LLIOPipe::EStatus stream_out ( std::ostream &  ostr,
XMLRPC_VALUE  value 
)

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.

Referenced by idle_startup(), LLFilterSD2XMLRPCRequest::process_impl(), LLFilterSD2XMLRPCResponse::process_impl(), and LLFilterSD2XMLRPC::streamOut().

Here is the caller graph for this function:


Variable Documentation

const S32 DEFAULT_PRECISION = 20 [static]

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[] = "}"

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': "

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]

xml rpc request: <?xml version="1.0"?> <methodCall><methodName>examples.getStateName</methodName> <params>

<i4>41</i4>

</params> </methodCall>

xml rpc response: <?xml version="1.0"?> <methodResponse> <params>

<string>South Dakota</string>

</params> </methodResponse>

xml rpc fault: <?xml version="1.0"?> <methodResponse> <fault>

<struct> <member><name>faultCode</name>

<int>4</int>

</member> <member><name>faultString</name>

<string>...</string>

</member> </struct>

</fault> </methodResponse>

llsd rpc request: { 'method':'...', 'parameter':...]}

llsd rpc response: { 'response':... }

llsd rpc fault: { 'fault': {'code':i..., 'description':'...'} } 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().


Generated on Fri May 16 08:35:20 2008 for SecondLife by  doxygen 1.5.5