sipxtacklib  Version 3.3
ProvisioningAgentXmlRpcAdapter.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 #ifndef _ProvisioningAgentXmlRpcAdapter_h_
12 #define _ProvisioningAgentXmlRpcAdapter_h_
13 
14 // SYSTEM INCLUDES
15 // APPLICATION INCLUDES
16 #include "net/XmlRpcMethod.h"
17 
18 // DEFINES
19 #define EXPECTED_STRUCT_FAULT_CODE 1
20 #define EXPECTED_STRUCT_FAULT_STRING "Argument type error: expected a struct."
21 
22 #define METHOD_DISPATCH_FAULT_CODE 2
23 #define METHOD_DISPATCH_FAULT_STRING "Failed to dispatch the target method procedure."
24 
25 // MACROS
26 // EXTERNAL FUNCTIONS
27 // EXTERNAL VARIABLES
28 // CONSTANTS
29 // STRUCTS
30 // TYPEDEFS
31 // FORWARD DECLARATIONS
32 class UtlSList;
33 class UtlContainable;
34 class HttpRequestContext;
35 class XmlRpcDispatch;
36 class XmlRpcResponse;
37 
43 public:
44 /* //////////////////////////// PUBLIC //////////////////////////////////// */
45 
46 /* ============================ CREATORS ================================== */
47 
51  ProvisioningAgentXmlRpcAdapter(const ProvisioningAgent* pProvisioningAgent,
52  int serverPort,
53  bool secureTransport = false);
54 
59 
60 /* ============================ MANIPULATORS ============================== */
61 
62 /* ============================ ACCESSORS ================================= */
63 
64 /* ============================ INQUIRY =================================== */
65 
66 /* //////////////////////////// PROTECTED ///////////////////////////////// */
67 protected:
68 
69 /* //////////////////////////// PRIVATE /////////////////////////////////// */
70 private:
71  XmlRpcDispatch* mpXmlRpcServer;
72 
73 
74  ProvisioningAgentXmlRpcAdapter(const ProvisioningAgentXmlRpcAdapter& rProvisioningAgentXmlRpcAdapter);
75  //:Copy constructor (not implemented for this class)
76 
78  //:Assignment operator (not implemented for this class)
79 };
80 
81 
87 public:
88 /* //////////////////////////// PUBLIC //////////////////////////////////// */
89 
90 /* ============================ CREATORS ================================== */
91 
92 /* ============================ MANIPULATORS ============================== */
93 
94 /* ============================ ACCESSORS ================================= */
98  static ProvisioningAgentXmlRpcCreate* get(void) {
100  }
101 
102 /* ============================ INQUIRY =================================== */
103 
104 /* //////////////////////////// PROTECTED ///////////////////////////////// */
105 protected:
112  bool execute(const HttpRequestContext& rContext,
113  UtlSList& rParameters,
114  void* pProvisioningAgentInstance,
115  XmlRpcResponse& rResponse,
117 
118 /* //////////////////////////// PRIVATE /////////////////////////////////// */
119 private:
120 };
121 
122 
128 public:
129 /* //////////////////////////// PUBLIC //////////////////////////////////// */
130 
131 /* ============================ CREATORS ================================== */
132 
133 /* ============================ MANIPULATORS ============================== */
134 
135 /* ============================ ACCESSORS ================================= */
139  static ProvisioningAgentXmlRpcDelete* get(void) {
141  }
142 
143 /* ============================ INQUIRY =================================== */
144 
145 /* //////////////////////////// PROTECTED ///////////////////////////////// */
146 protected:
153  bool execute(const HttpRequestContext& rContext,
154  UtlSList& rParameters,
155  void* pProvisioningAgentInstance,
156  XmlRpcResponse& rResponse,
158 
159 /* //////////////////////////// PRIVATE /////////////////////////////////// */
160 private:
161 };
162 
163 
169 public:
170 /* //////////////////////////// PUBLIC //////////////////////////////////// */
171 
172 /* ============================ CREATORS ================================== */
173 
174 /* ============================ MANIPULATORS ============================== */
175 
176 /* ============================ ACCESSORS ================================= */
180  static ProvisioningAgentXmlRpcSet* get(void) {
181  return new ProvisioningAgentXmlRpcSet;
182  }
183 
184 /* ============================ INQUIRY =================================== */
185 
186 /* //////////////////////////// PROTECTED ///////////////////////////////// */
187 protected:
194  bool execute(const HttpRequestContext& rContext,
195  UtlSList& rParameters,
196  void* pProvisioningAgentInstance,
197  XmlRpcResponse& rResponse,
199 
200 /* //////////////////////////// PRIVATE /////////////////////////////////// */
201 private:
202 };
203 
204 
210 public:
211 /* //////////////////////////// PUBLIC //////////////////////////////////// */
212 
213 /* ============================ CREATORS ================================== */
214 
215 /* ============================ MANIPULATORS ============================== */
216 
217 /* ============================ ACCESSORS ================================= */
221  static ProvisioningAgentXmlRpcGet* get(void) {
222  return new ProvisioningAgentXmlRpcGet;
223  }
224 
225 /* ============================ INQUIRY =================================== */
226 
227 /* //////////////////////////// PROTECTED ///////////////////////////////// */
228 protected:
235  bool execute(const HttpRequestContext& rContext,
236  UtlSList& rParameters,
237  void* pProvisioningAgentInstance,
238  XmlRpcResponse& rResponse,
240 
241 /* //////////////////////////// PRIVATE /////////////////////////////////// */
242 private:
243 };
244 
245 
251 public:
252 /* //////////////////////////// PUBLIC //////////////////////////////////// */
253 
254 /* ============================ CREATORS ================================== */
255 
256 /* ============================ MANIPULATORS ============================== */
257 
258 /* ============================ ACCESSORS ================================= */
262  static ProvisioningAgentXmlRpcAction* get(void) {
264  }
265 
266 /* ============================ INQUIRY =================================== */
267 
268 /* //////////////////////////// PROTECTED ///////////////////////////////// */
269 protected:
276  bool execute(const HttpRequestContext& rContext,
277  UtlSList& rParameters,
278  void* pProvisioningAgentInstance,
279  XmlRpcResponse& rResponse,
281 
282 /* //////////////////////////// PRIVATE /////////////////////////////////// */
283 private:
284 };
285 
286 #endif // _ProvisioningAgentXmlRpcAdapter_h_
287 
This class implements the mapping between the XmlRpc procedure "create" and the ProvisioningAgent::cr...
Definition: ProvisioningAgentXmlRpcAdapter.h:86
This class implements the mapping between the XmlRpc procedure "action" and the ProvisioningAgent::ac...
Definition: ProvisioningAgentXmlRpcAdapter.h:250
virtual ~ProvisioningAgentXmlRpcAdapter()
Destructor.
Definition: ProvisioningAgentXmlRpcAdapter.cpp:84
A XmlRpcMethod is a dynamically loaded object that is invoked by the XmlRpcDispatch during the runtim...
Definition: XmlRpcMethod.h:67
ExecutionStatus
Definition: XmlRpcMethod.h:72
A XmlRpcDispatch is a object that monitors the incoming XML-RPC requests, parses XmlRpcRequest messag...
Definition: XmlRpcDispatch.h:78
ProvisioningAgentXmlRpcAdapter(const ProvisioningAgent *pProvisioningAgent, int serverPort, bool secureTransport=false)
Default constructor.
Definition: ProvisioningAgentXmlRpcAdapter.cpp:50
This class implements the mapping between the XmlRpc procedure "create" and the ProvisioningAgent::cr...
Definition: ProvisioningAgentXmlRpcAdapter.h:42
Definition: HttpRequestContext.h:37
Definition: ProvisioningAgent.h:36
This object is used to create a XML-RPC response to a XmlRpcRequest request.
Definition: XmlRpcResponse.h:57
This class implements the mapping between the XmlRpc procedure "delete" and the ProvisioningAgent::de...
Definition: ProvisioningAgentXmlRpcAdapter.h:127
This class implements the mapping between the XmlRpc procedure "set" and the ProvisioningAgent::set()...
Definition: ProvisioningAgentXmlRpcAdapter.h:168
This class implements the mapping between the XmlRpc procedure "get" and the ProvisioningAgent::get()...
Definition: ProvisioningAgentXmlRpcAdapter.h:209

sipXtackLib home page