sipxtacklib  Version 3.3
XmlRpcMethod.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 _XMLRPCMETHOD_H_
12 #define _XMLRPCMETHOD_H_
13 
14 // SYSTEM INCLUDES
15 
16 // APPLICATION INCLUDES
17 #include <utl/UtlString.h>
18 #include <utl/UtlSList.h>
19 #include <utl/UtlHashMap.h>
20 #include <net/HttpRequestContext.h>
21 #include <net/XmlRpcResponse.h>
22 
23 // DEFINES
24 // MACROS
25 // EXTERNAL FUNCTIONS
26 // EXTERNAL VARIABLES
27 // CONSTANTS
28 // STRUCTS
29 // TYPEDEFS
30 // FORWARD DECLARATIONS
31 
32 class XmlRpcDispatch;
33 
34 
68 {
69 /* //////////////////////////// PUBLIC //////////////////////////////////// */
70 public:
71 
72  typedef enum ExecutionStatus
73  {
74  OK,
78 
79 /* ============================ CREATORS ================================== */
80 
81  typedef XmlRpcMethod* Get();
82 
84  static XmlRpcMethod* get();
85 
87  virtual ~XmlRpcMethod();
88 
90  virtual bool execute(const HttpRequestContext& requestContext,
91  UtlSList& params,
92  void* userData,
93  XmlRpcResponse& response,
94  ExecutionStatus& status) = 0;
95 
96 /* ============================ MANIPULATORS ============================== */
97 
98 /* ============================ ACCESSORS ================================= */
99 
100 
101 /* ============================ INQUIRY =================================== */
102 
103 /* //////////////////////////// PROTECTED ///////////////////////////////// */
104 protected:
105 
107  XmlRpcMethod();
108 
109 /* //////////////////////////// PRIVATE /////////////////////////////////// */
110 private:
111 
113  XmlRpcMethod(const XmlRpcMethod& rXmlRpcMethod);
114 
116  XmlRpcMethod& operator=(const XmlRpcMethod& rhs);
117 
118 };
119 
120 /* ============================ INLINE METHODS ============================ */
121 
122 #endif // _XMLRPCMETHOD_H_
123 
124 
Definition: XmlRpcMethod.h:76
XmlRpcMethod()
Constructor.
Definition: XmlRpcMethod.cpp:51
Definition: XmlRpcMethod.h:75
Definition: XmlRpcMethod.h:74
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
virtual ~XmlRpcMethod()
Destructor.
Definition: XmlRpcMethod.cpp:34
A XmlRpcDispatch is a object that monitors the incoming XML-RPC requests, parses XmlRpcRequest messag...
Definition: XmlRpcDispatch.h:78
Definition: HttpRequestContext.h:37
This object is used to create a XML-RPC response to a XmlRpcRequest request.
Definition: XmlRpcResponse.h:57
virtual bool execute(const HttpRequestContext &requestContext, UtlSList &params, void *userData, XmlRpcResponse &response, ExecutionStatus &status)=0
Execute the method. Subclasses must provide a definition for this method.
XmlRpcMethod * Get()
Definition: XmlRpcMethod.h:81

sipXtackLib home page