icinga2/lib/remote/objectqueryhandler.hpp

27 lines
608 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, HttpRequest& request,
HttpResponse& 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 */