/usr/include/sipxtapi/net/XmlRpcBody.h is in libsipxtapi-dev 3.3.0~test17-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | //
// Copyright (C) 2004-2006 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////
#ifndef _XMLRPCBODY_H_
#define _XMLRPCBODY_H_
// SYSTEM INCLUDES
// APPLICATION INCLUDES
#include <net/HttpBody.h>
// DEFINES
#define CONTENT_TYPE_TEXT_XML "text/xml"
#define BEGIN_METHOD_CALL "<methodCall>\n"
#define END_METHOD_CALL "</methodCall>\n"
#define BEGIN_METHOD_NAME "<methodName>"
#define END_METHOD_NAME "</methodName>\n"
#define BEGIN_PARAMS "<params>\n"
#define END_PARAMS "</params>\n"
#define BEGIN_PARAM "<param>\n"
#define END_PARAM "</param>\n"
#define BEGIN_I4 "<value><i4>"
#define END_I4 "</i4></value>\n"
#define BEGIN_INT "<value><int>"
#define END_INT "</int></value>\n"
#define BEGIN_I8 "<value><i8>"
#define END_I8 "</i8></value>\n"
#define BEGIN_BOOLEAN "<value><boolean>"
#define END_BOOLEAN "</boolean></value>\n"
#define BEGIN_STRING "<value><string>"
#define END_STRING "</string></value>\n"
#define BEGIN_TIME "<value><dateTime.iso8601>"
#define END_TIME "</dataTime.iso8601></value>\n"
#define BEGIN_ARRAY "<value><array><data>\n"
#define END_ARRAY "</data></array></value>\n"
#define BEGIN_STRUCT "<value><struct>\n"
#define END_STRUCT "</struct></value>\n"
#define BEGIN_MEMBER "<member>\n"
#define END_MEMBER "</member>\n"
#define BEGIN_NAME "<name>"
#define END_NAME "</name>"
#define BEGIN_RESPONSE "<methodResponse>\n"
#define END_RESPONSE "</methodResponse>\n"
#define BEGIN_FAULT "<fault>\n"
#define END_FAULT "</fault>\n"
#define FAULT_CODE "<name>faultCode</name>"
#define FAULT_STRING "<name>faultString</name>"
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS
// FORWARD DECLARATIONS
/**
* This class contains all the contents presented in a XML-RPC body. This class
* has the methods to construct a XML-RPC body. It is only used by XmlRpcRequest
* and XmlRpcResponse classes.
*
*/
class XmlRpcBody : public HttpBody
{
/* //////////////////////////// PUBLIC //////////////////////////////////// */
public:
/// Construct an empty body of a XML-RPC
XmlRpcBody();
/// Destructor
virtual ~XmlRpcBody();
/// Append the string to the body
void append(const char* string);
/// Get the string length of this object
virtual int getLength() const;
/// Get the serialized char representation of this body.
virtual void getBytes(const char** bytes, ///< buffer space where the body content is written, null terminated
int* length ///< the number of bytes written (not including the null terminator
) const;
/// Get the serialized string representation of this body.
virtual void getBytes(UtlString* bytes, ///< buffer space where the body content is written, null terminated
int* length ///< the number of bytes written (not including the null terminator
) const;
/// Add a value to the XML-RPC content
bool addValue(UtlContainable* value);
/// Add an array to the XML-RPC content
bool addArray(UtlSList* array); ///< array of elements
/// Add a struct to the XML-RPC content
bool addStruct(UtlHashMap* members); ///< struct of members
/* //////////////////////////// PROTECTED ///////////////////////////////// */
protected:
/* //////////////////////////// PRIVATE /////////////////////////////////// */
private:
/// Disabled copy constructor
XmlRpcBody(const XmlRpcBody& rXmlRpcBody);
/// Disabled assignment operator
XmlRpcBody& operator=(const XmlRpcBody& rhs);
};
/* ============================ INLINE METHODS ============================ */
#endif // _XMLRPCBODY_H_
|