set(remote_SOURCES
actionshandler.cpp apiaction.cpp
- apifunction.cpp apilistener.cpp apilistener.thpp apilistener-configsync.cpp
- apilistener-filesync.cpp apiuser.cpp apiuser.thpp authority.cpp base64.cpp
+ apifunction.cpp apilistener.cpp apilistener.thpp apilistener-configsync.cpp
+ apilistener-filesync.cpp apiuser.cpp apiuser.thpp authority.cpp base64.cpp
configfileshandler.cpp configpackageshandler.cpp configpackageutility.cpp configobjectutility.cpp
configstageshandler.cpp createobjecthandler.cpp deleteobjecthandler.cpp
endpoint.cpp endpoint.thpp filterutility.cpp
httpchunkedencoding.cpp httpclientconnection.cpp httpserverconnection.cpp httphandler.cpp httprequest.cpp httpresponse.cpp
httputility.cpp jsonrpc.cpp jsonrpcconnection.cpp jsonrpcconnection-heartbeat.cpp
- messageorigin.cpp modifyobjecthandler.cpp statushandler.cpp statusqueryhandler.cpp typequeryhandler.cpp
+ messageorigin.cpp modifyobjecthandler.cpp statushandler.cpp objectqueryhandler.cpp typequeryhandler.cpp
url.cpp zone.cpp zone.thpp
)
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
-#include "remote/statusqueryhandler.hpp"
+#include "remote/objectqueryhandler.hpp"
#include "remote/httputility.hpp"
#include "remote/filterutility.hpp"
#include "base/serializer.hpp"
using namespace icinga;
-REGISTER_URLHANDLER("/v1", StatusQueryHandler);
+REGISTER_URLHANDLER("/v1", ObjectQueryHandler);
-bool StatusQueryHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response)
+bool ObjectQueryHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response)
{
if (request.RequestMethod != "GET")
return false;
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
-#ifndef STATUSQUERYHANDLER_H
-#define STATUSQUERYHANDLER_H
+#ifndef OBJECTQUERYHANDLER_H
+#define OBJECTQUERYHANDLER_H
#include "remote/httphandler.hpp"
namespace icinga
{
-class I2_REMOTE_API StatusQueryHandler : public HttpHandler
+class I2_REMOTE_API ObjectQueryHandler : public HttpHandler
{
public:
- DECLARE_PTR_TYPEDEFS(StatusQueryHandler);
+ DECLARE_PTR_TYPEDEFS(ObjectQueryHandler);
virtual bool HandleRequest(const ApiUser::Ptr& user, HttpRequest& request, HttpResponse& response) override;
};
}
-#endif /* STATUSQUERYHANDLER_H */
+#endif /* OBJECTQUERYHANDLER_H */