icinga2/lib/remote/objectqueryhandler.hpp

32 lines
738 B
C++
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2015-06-22 11:11:21 +02:00
#ifndef OBJECTQUERYHANDLER_H
#define OBJECTQUERYHANDLER_H
2015-06-22 11:11:21 +02:00
#include "remote/httphandler.hpp"
namespace icinga
{
2018-01-04 06:11:04 +01:00
class ObjectQueryHandler final : public HttpHandler
2015-06-22 11:11:21 +02:00
{
public:
DECLARE_PTR_TYPEDEFS(ObjectQueryHandler);
2015-06-22 11:11:21 +02:00
bool HandleRequest(
const ApiUser::Ptr& user,
boost::beast::http::request<boost::beast::http::string_body>& request,
const Url::Ptr& url,
boost::beast::http::response<boost::beast::http::string_body>& response,
const Dictionary::Ptr& params
) override;
private:
static Dictionary::Ptr SerializeObjectAttrs(const Object::Ptr& object, const String& attrPrefix,
const Array::Ptr& attrs, bool isJoin, bool allAttrs);
2015-06-22 11:11:21 +02:00
};
}
#endif /* OBJECTQUERYHANDLER_H */