virtual std::string retrieveResponse(const IHttpResponse& response)
 {
     if (response.getStatusCode() != HttpStatusCode::OK) {
         throw HttpTransportException(response.getStatusCode(), (boost::format("Invalid response code %1%") % response.getStatusCode()).str());
     }
     return getHttpDataProcessor()->retrieveOperationResponse(response);
 }
 virtual std::shared_ptr<IHttpRequest> createRequest(IPTransportInfoPtr server, const std::vector<std::uint8_t>& body)
 {
     return getHttpDataProcessor()->createOperationRequest(server->getURL() + getURLSuffix(), body);
 }
Exemplo n.º 3
0
 virtual std::string retrieveResponse(const IHttpResponse& response)
 {
     return getHttpDataProcessor()->retrieveBootstrapResponse(response);
 }
Exemplo n.º 4
0
 virtual boost::shared_ptr<IHttpRequest> createRequest(AbstractServerInfoPtr server, const std::vector<boost::uint8_t>& body)
 {
     return getHttpDataProcessor()->createOperationRequest(server->getUrl(), body);
 }
Exemplo n.º 5
0
 virtual std::shared_ptr<IHttpRequest> createRequest(IPTransportInfoPtr server, const std::vector<std::uint8_t>& body)
 {
     HttpDataProcessor *processor = getHttpDataProcessor();
     auto request = processor->createBootstrapRequest(server->getURL() + getURLSuffix(), body);
     return request;
 }