21 #ifndef OLAD_OLADHTTPSERVER_H_
22 #define OLAD_OLADHTTPSERVER_H_
28 #include "ola/OlaCallbackClient.h"
29 #include "ola/http/HTTPServer.h"
30 #include "ola/http/OlaHTTPServer.h"
31 #include "ola/network/Interface.h"
33 #include "olad/RDMHTTPModule.h"
67 int JsonUniversePluginList(
const HTTPRequest *request,
82 const vector<class OlaPlugin> &plugins,
87 const vector<class OlaUniverse> &universes,
92 const string &description,
101 const string &error);
105 unsigned int universe_id,
106 const vector<class OlaDevice> &devices,
107 const string &error);
110 const vector<class OlaDevice> &devices,
111 const string &error);
114 unsigned int universe_id,
119 unsigned int universe_id,
132 inline static int ServeHelpRedirect(
HTTPResponse *response) {
133 return HTTPServer::ServeRedirect(response, HELP_REDIRECTION);
136 static int ServeUsage(
HTTPResponse *response,
const string &details);
138 static const char HELP_PARAMETER[];
147 time_t m_start_time_t;
154 const string &error);
156 void HandleBoolResponse(
HTTPResponse *response,
const string &error);
164 const string port_id_string,
165 unsigned int universe,
166 PatchAction port_action);
172 unsigned int device_alias;
174 PortDirection direction;
178 void DecodePortIds(
const string &port_ids, vector<port_identifier> *ports);
180 void RegisterHandler(
182 int (
OladHTTPServer::*method)(
const HTTPRequest*, HTTPResponse*));
184 static const char HELP_REDIRECTION[];
185 static const char K_BACKEND_DISCONNECTED_ERROR[];
186 static const unsigned int K_UNIVERSE_NAME_LIMIT = 100;
187 static const char K_PRIORITY_VALUE_SUFFIX[];
188 static const char K_PRIORITY_MODE_SUFFIX[];
191 #endif // OLAD_OLADHTTPSERVER_H_