Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkIRESTObserver.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkIRESTObserver_h
14 #define mitkIRESTObserver_h
15 
16 #include <MitkRESTExports.h>
17 #include <mitkRESTUtil.h>
18 #include <cpprest/json.h>
19 #include <cpprest/uri.h>
20 #include <cpprest/http_client.h>
21 
22 namespace mitk
23 {
25  {
26  public:
32  virtual ~IRESTObserver();
33 
41  virtual web::http::http_response Notify(const web::uri &uri,
42  const web::json::value &data,
43  const web::http::method &method,
44  const mitk::RESTUtil::ParamMap &headers) = 0;
45 
46 
47  private:
48  };
49 }
50 
51 #endif
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKREST_EXPORT
web::http::http_response http_response
std::map< utility::string_t, utility::string_t > ParamMap
Definition: mitkRESTUtil.h:27