annotate Framework/Deprecated/Toolbox/IWebService.h @ 1117:383aa2a7d426 broker

integration mainline->broker
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Nov 2019 15:54:57 +0100
parents e146743f6cdc
children 21c2b0eee53c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
57
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 /**
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 * Stone of Orthanc
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
439
b70e9be013e4 preparing for 2019
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 417
diff changeset
5 * Copyright (C) 2017-2019 Osimis S.A., Belgium
57
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 *
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 * This program is free software: you can redistribute it and/or
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 * modify it under the terms of the GNU Affero General Public License
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 * the License, or (at your option) any later version.
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 *
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful, but
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 * Affero General Public License for more details.
251
192e6e349e69 first usage of new message system (in SDL only)
am@osimis.io
parents: 212
diff changeset
16 *
57
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 * You should have received a copy of the GNU Affero General Public License
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 **/
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 #pragma once
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23
732
c35e98d22764 move Deprecated classes to a separate folder
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 726
diff changeset
24 #include "../../Messages/IObserver.h"
c35e98d22764 move Deprecated classes to a separate folder
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 726
diff changeset
25 #include "../../Messages/ICallable.h"
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
26
1048
f6be9412e42a cleaning up IObservable.h
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 940
diff changeset
27 #include <Core/Enumerations.h>
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
28 #include <Core/IDynamicObject.h>
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
29 #include <Core/Logging.h>
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
30
57
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 #include <string>
299
3897f9f28cfa backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents: 288
diff changeset
32 #include <map>
57
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33
726
4f2416d519b4 moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 643
diff changeset
34 namespace Deprecated
57
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 {
288
8c8da145fefa renamings and doc
am@osimis.io
parents: 269
diff changeset
36 // The IWebService performs HTTP requests.
8c8da145fefa renamings and doc
am@osimis.io
parents: 269
diff changeset
37 // Since applications can run in native or WASM environment and, since
8c8da145fefa renamings and doc
am@osimis.io
parents: 269
diff changeset
38 // in a WASM environment, the WebService is asynchronous, the IWebservice
8c8da145fefa renamings and doc
am@osimis.io
parents: 269
diff changeset
39 // also implements an asynchronous interface: you must schedule a request
8c8da145fefa renamings and doc
am@osimis.io
parents: 269
diff changeset
40 // and you'll be notified when the response/error is ready.
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
41 class IWebService : public boost::noncopyable
269
0dfa83535cd7 indentation
am@osimis.io
parents: 268
diff changeset
42 {
0dfa83535cd7 indentation
am@osimis.io
parents: 268
diff changeset
43 public:
417
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
44 typedef std::map<std::string, std::string> HttpHeaders;
257
9afafb192180 using PAM
am@osimis.io
parents: 252
diff changeset
45
726
4f2416d519b4 moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 643
diff changeset
46 class HttpRequestSuccessMessage : public OrthancStone::IMessage
299
3897f9f28cfa backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents: 288
diff changeset
47 {
643
f0008c55e5f7 getting rid of MessageType enumeration
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 440
diff changeset
48 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__);
f0008c55e5f7 getting rid of MessageType enumeration
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 440
diff changeset
49
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
50 private:
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
51 const std::string& uri_;
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
52 const void* answer_;
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
53 size_t answerSize_;
417
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
54 const HttpHeaders& answerHeaders_;
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
55 const Orthanc::IDynamicObject* payload_;
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
56
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
57 public:
301
547e1cf7aa7b cleanup
am@osimis.io
parents: 300
diff changeset
58 HttpRequestSuccessMessage(const std::string& uri,
309
14ef1227120f web services: better handling of failures
am@osimis.io
parents: 301
diff changeset
59 const void* answer,
14ef1227120f web services: better handling of failures
am@osimis.io
parents: 301
diff changeset
60 size_t answerSize,
417
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
61 const HttpHeaders& answerHeaders,
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
62 const Orthanc::IDynamicObject* payload) :
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
63 uri_(uri),
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
64 answer_(answer),
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
65 answerSize_(answerSize),
417
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
66 answerHeaders_(answerHeaders),
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
67 payload_(payload)
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
68 {
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
69 }
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
70
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
71 const std::string& GetUri() const
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
72 {
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
73 return uri_;
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
74 }
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
75
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
76 const void* GetAnswer() const
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
77 {
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
78 return answer_;
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
79 }
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
80
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
81 size_t GetAnswerSize() const
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
82 {
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
83 return answerSize_;
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
84 }
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
85
417
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
86 const HttpHeaders& GetAnswerHttpHeaders() const
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
87 {
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
88 return answerHeaders_;
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
89 }
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
90
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
91 bool HasPayload() const
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
92 {
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
93 return payload_ != NULL;
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
94 }
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
95
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
96 const Orthanc::IDynamicObject& GetPayload() const;
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
97 };
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
98
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
99
726
4f2416d519b4 moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 643
diff changeset
100 class HttpRequestErrorMessage : public OrthancStone::IMessage
299
3897f9f28cfa backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents: 288
diff changeset
101 {
643
f0008c55e5f7 getting rid of MessageType enumeration
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 440
diff changeset
102 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__);
f0008c55e5f7 getting rid of MessageType enumeration
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 440
diff changeset
103
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
104 private:
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
105 const std::string& uri_;
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
106 const Orthanc::IDynamicObject* payload_;
940
861c080ef47b handling httpStatus in WebService error messages
Alain Mazy <alain@mazy.be>
parents: 732
diff changeset
107 Orthanc::HttpStatus httpStatus_;
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
108
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
109 public:
301
547e1cf7aa7b cleanup
am@osimis.io
parents: 300
diff changeset
110 HttpRequestErrorMessage(const std::string& uri,
940
861c080ef47b handling httpStatus in WebService error messages
Alain Mazy <alain@mazy.be>
parents: 732
diff changeset
111 Orthanc::HttpStatus httpStatus,
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
112 const Orthanc::IDynamicObject* payload) :
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
113 uri_(uri),
940
861c080ef47b handling httpStatus in WebService error messages
Alain Mazy <alain@mazy.be>
parents: 732
diff changeset
114 payload_(payload),
861c080ef47b handling httpStatus in WebService error messages
Alain Mazy <alain@mazy.be>
parents: 732
diff changeset
115 httpStatus_(httpStatus)
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
116 {
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
117 }
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
118
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
119 const std::string& GetUri() const
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
120 {
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
121 return uri_;
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
122 }
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
123
940
861c080ef47b handling httpStatus in WebService error messages
Alain Mazy <alain@mazy.be>
parents: 732
diff changeset
124 Orthanc::HttpStatus GetHttpStatus() const
861c080ef47b handling httpStatus in WebService error messages
Alain Mazy <alain@mazy.be>
parents: 732
diff changeset
125 {
861c080ef47b handling httpStatus in WebService error messages
Alain Mazy <alain@mazy.be>
parents: 732
diff changeset
126 return httpStatus_;
861c080ef47b handling httpStatus in WebService error messages
Alain Mazy <alain@mazy.be>
parents: 732
diff changeset
127 }
861c080ef47b handling httpStatus in WebService error messages
Alain Mazy <alain@mazy.be>
parents: 732
diff changeset
128
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
129 bool HasPayload() const
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
130 {
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
131 return payload_ != NULL;
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
132 }
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
133
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
134 const Orthanc::IDynamicObject& GetPayload() const;
299
3897f9f28cfa backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents: 288
diff changeset
135 };
3897f9f28cfa backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents: 288
diff changeset
136
3897f9f28cfa backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents: 288
diff changeset
137
269
0dfa83535cd7 indentation
am@osimis.io
parents: 268
diff changeset
138 virtual ~IWebService()
0dfa83535cd7 indentation
am@osimis.io
parents: 268
diff changeset
139 {
0dfa83535cd7 indentation
am@osimis.io
parents: 268
diff changeset
140 }
251
192e6e349e69 first usage of new message system (in SDL only)
am@osimis.io
parents: 212
diff changeset
141
434
3a8bcc45c221 moved the HTTP cache from OrthancApiClient to BaseWebService (not implemented yet in WASM)
am@osimis.io
parents: 417
diff changeset
142 virtual void EnableCache(bool enable) = 0;
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
143
299
3897f9f28cfa backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents: 288
diff changeset
144 virtual void GetAsync(const std::string& uri,
417
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
145 const HttpHeaders& headers,
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
146 Orthanc::IDynamicObject* payload /* takes ownership */,
726
4f2416d519b4 moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 643
diff changeset
147 OrthancStone::MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallback,
4f2416d519b4 moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 643
diff changeset
148 OrthancStone::MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL,
309
14ef1227120f web services: better handling of failures
am@osimis.io
parents: 301
diff changeset
149 unsigned int timeoutInSeconds = 60) = 0;
299
3897f9f28cfa backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents: 288
diff changeset
150
300
b4abaeb783b1 messaging refactoring almost complete: works fine in native
am@osimis.io
parents: 299
diff changeset
151 virtual void PostAsync(const std::string& uri,
417
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
152 const HttpHeaders& headers,
300
b4abaeb783b1 messaging refactoring almost complete: works fine in native
am@osimis.io
parents: 299
diff changeset
153 const std::string& body,
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
154 Orthanc::IDynamicObject* payload /* takes ownership */,
726
4f2416d519b4 moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 643
diff changeset
155 OrthancStone::MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallback,
4f2416d519b4 moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 643
diff changeset
156 OrthancStone::MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL,
309
14ef1227120f web services: better handling of failures
am@osimis.io
parents: 301
diff changeset
157 unsigned int timeoutInSeconds = 60) = 0;
299
3897f9f28cfa backup work in progress: updated messaging framework with ICallable
am@osimis.io
parents: 288
diff changeset
158
315
aad37d0b6407 Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents: 309
diff changeset
159 virtual void DeleteAsync(const std::string& uri,
417
aee3d7941c9b preparing to load images using DICOMweb
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 383
diff changeset
160 const HttpHeaders& headers,
377
8eb4fe74000f refactoring
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 315
diff changeset
161 Orthanc::IDynamicObject* payload /* takes ownership */,
726
4f2416d519b4 moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 643
diff changeset
162 OrthancStone::MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallback,
4f2416d519b4 moving layers, widgets and loaders to Deprecated namespace
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 643
diff changeset
163 OrthancStone::MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback = NULL,
315
aad37d0b6407 Added LayerWidget::RemoveLayer + DELETE commands in WebService
am@osimis.io
parents: 309
diff changeset
164 unsigned int timeoutInSeconds = 60) = 0;
269
0dfa83535cd7 indentation
am@osimis.io
parents: 268
diff changeset
165 };
57
d20e25cfcf3a IWebService
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
166 }