icinga2/lib/remote/objectqueryhandler.hpp

31 lines
631 B
C++
Raw Permalink Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2015-06-22 05:11:21 -04:00
#ifndef OBJECTQUERYHANDLER_H
#define OBJECTQUERYHANDLER_H
2015-06-22 05:11:21 -04:00
#include "remote/httphandler.hpp"
namespace icinga
{
2018-01-04 00:11:04 -05:00
class ObjectQueryHandler final : public HttpHandler
2015-06-22 05:11:21 -04:00
{
public:
DECLARE_PTR_TYPEDEFS(ObjectQueryHandler);
2015-06-22 05:11:21 -04:00
bool HandleRequest(
const WaitGroup::Ptr& waitGroup,
const HttpRequest& request,
HttpResponse& response,
boost::asio::yield_context& yc
) override;
private:
static Dictionary::Ptr SerializeObjectAttrs(const Object::Ptr& object, const String& attrPrefix,
const Array::Ptr& attrs, bool isJoin, bool allAttrs);
2015-06-22 05:11:21 -04:00
};
}
#endif /* OBJECTQUERYHANDLER_H */