22 #ifndef UniSetActivator_H_
23 #define UniSetActivator_H_
27 #include <omniORB4/CORBA.h>
28 #include "UniSetTypes.h"
29 #include "UniSetObject.h"
30 #include "UniSetManager.h"
31 #include "OmniThreadCreator.h"
32 #include "UHttpRequestHandler.h"
33 #include "UHttpServer.h"
38 class UniSetActivator;
39 typedef std::shared_ptr<UniSetActivator> UniSetActivatorPtr;
63 #ifndef DISABLE_REST_API
69 static UniSetActivatorPtr Instance();
76 void run(
bool async,
bool terminate_control =
true );
93 #ifndef DISABLE_REST_API
95 virtual Poco::JSON::Object::Ptr httpGetByName(
const std::string& name ,
const Poco::URI::QueryParameters& p )
override;
96 virtual Poco::JSON::Array::Ptr
httpGetObjectsList(
const Poco::URI::QueryParameters& p )
override;
97 virtual Poco::JSON::Object::Ptr httpHelpByName(
const std::string& name,
const Poco::URI::QueryParameters& p )
override;
98 virtual Poco::JSON::Object::Ptr httpRequestByName(
const std::string& name,
const std::string& req,
const Poco::URI::QueryParameters& p )
override;
108 static std::shared_ptr<UniSetActivator> inst;
112 static void on_finish_timeout();
113 static void set_signals(
bool set );
115 std::shared_ptr< OmniThreadCreator<UniSetActivator> > orbthr;
118 bool termControl = {
true };
120 #ifndef DISABLE_REST_API
121 std::shared_ptr<uniset::UHttp::UHttpServer> httpserv;
122 std::string httpHost = {
"" };
123 int httpPort = { 0 };
124 std::string httpCORS_allow = {
"*" };