2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2015-07-21 16:10:13 +02:00
|
|
|
|
|
|
|
#ifndef CONFIGMODULESHANDLER_H
|
|
|
|
#define CONFIGMODULESHANDLER_H
|
|
|
|
|
|
|
|
#include "remote/httphandler.hpp"
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
2018-01-04 06:11:04 +01:00
|
|
|
class ConfigPackagesHandler final : public HttpHandler
|
2015-07-21 16:10:13 +02:00
|
|
|
{
|
|
|
|
public:
|
2015-08-28 17:58:29 +02:00
|
|
|
DECLARE_PTR_TYPEDEFS(ConfigPackagesHandler);
|
2015-07-21 16:10:13 +02:00
|
|
|
|
2018-01-04 05:12:56 +01:00
|
|
|
bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request,
|
2017-12-19 15:50:05 +01:00
|
|
|
HttpResponse& response, const Dictionary::Ptr& params) override;
|
2015-07-21 16:10:13 +02:00
|
|
|
|
|
|
|
private:
|
2016-05-10 15:16:35 +02:00
|
|
|
void HandleGet(const ApiUser::Ptr& user, HttpRequest& request,
|
2017-12-20 15:31:05 +01:00
|
|
|
HttpResponse& response, const Dictionary::Ptr& params);
|
2016-05-10 15:16:35 +02:00
|
|
|
void HandlePost(const ApiUser::Ptr& user, HttpRequest& request,
|
2017-12-19 15:50:05 +01:00
|
|
|
HttpResponse& response, const Dictionary::Ptr& params);
|
2016-05-10 15:16:35 +02:00
|
|
|
void HandleDelete(const ApiUser::Ptr& user, HttpRequest& request,
|
2017-12-19 15:50:05 +01:00
|
|
|
HttpResponse& response, const Dictionary::Ptr& params);
|
2015-07-21 16:10:13 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CONFIGMODULESHANDLER_H */
|