ADTF  3.18.4
http_rpc_server.h
Go to the documentation of this file.
1 
15 #ifndef PKG_RPC_HTTP_RPC_PROTOCOL_H_INCLUDED
16 #define PKG_RPC_HTTP_RPC_PROTOCOL_H_INCLUDED
17 
20 
21 namespace rpc {
22 
23 namespace http {
24 
26 namespace detail {
27 
31 class cRPCServer : private cRPCObjectsRegistry, public cThreadedHttpServer {
32 public:
37  cRPCServer(const char* strContentType);
38 
42  virtual a_util::result::Result RegisterRPCObject(const char* strName, IRPCObject* pObject);
43 
47  virtual a_util::result::Result UnregisterRPCObject(const char* strName);
48 
49 protected:
50  bool HandleRequest(const std::string& strName,
51  const std::string& strRequest,
52  std::string& strResponse,
53  std::string& strContentType);
54 
55 private:
56  std::string m_strContentType;
57 };
58 
59 } // namespace detail
62 } // namespace http
63 } // namespace rpc
64 
65 #endif // PKG_RPC_HTTP_RPC_PROTOCOL_H_INCLUDED
A common result class usable as return value throughout.
RPC Protocol declaration.