Mercurial > hg > orthanc-stone
comparison Platforms/Generic/WebServicePostCommand.h @ 754:92c400a09f1b
Merge from default
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 22 May 2019 16:13:46 +0200 |
parents | 4f2416d519b4 |
children | e713f1a99861 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
753:a386bbc955dc | 754:92c400a09f1b |
---|---|
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "WebServiceCommandBase.h" | 24 #include "WebServiceCommandBase.h" |
25 | 25 |
26 namespace OrthancStone | 26 namespace Deprecated |
27 { | 27 { |
28 class WebServicePostCommand : public WebServiceCommandBase | 28 class WebServicePostCommand : public WebServiceCommandBase |
29 { | 29 { |
30 protected: | 30 protected: |
31 std::string body_; | 31 std::string body_; |
32 | 32 |
33 public: | 33 public: |
34 WebServicePostCommand(MessageBroker& broker, | 34 WebServicePostCommand(OrthancStone::MessageBroker& broker, |
35 MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallback, // takes ownership | 35 OrthancStone::MessageHandler<IWebService::HttpRequestSuccessMessage>* successCallback, // takes ownership |
36 MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback, // takes ownership | 36 OrthancStone::MessageHandler<IWebService::HttpRequestErrorMessage>* failureCallback, // takes ownership |
37 const Orthanc::WebServiceParameters& parameters, | 37 const Orthanc::WebServiceParameters& parameters, |
38 const std::string& url, | 38 const std::string& url, |
39 const IWebService::HttpHeaders& headers, | 39 const IWebService::HttpHeaders& headers, |
40 unsigned int timeoutInSeconds, | 40 unsigned int timeoutInSeconds, |
41 const std::string& body, | 41 const std::string& body, |
42 Orthanc::IDynamicObject* payload /* takes ownership */, | 42 Orthanc::IDynamicObject* payload /* takes ownership */, |
43 NativeStoneApplicationContext& context); | 43 OrthancStone::NativeStoneApplicationContext& context); |
44 | 44 |
45 virtual void Execute(); | 45 virtual void Execute(); |
46 }; | 46 }; |
47 } | 47 } |