17 #ifndef DEFAULTOPERATIONHTTPCHANNEL_HPP_
18 #define DEFAULTOPERATIONHTTPCHANNEL_HPP_
37 virtual const std::string&
getId()
const {
return CHANNEL_ID; }
41 virtual std::shared_ptr<IHttpRequest> createRequest(
IPTransportInfoPtr server,
const std::vector<std::uint8_t>& body)
46 virtual std::string retrieveResponse(
const IHttpResponse& response)
49 throw HttpTransportException(response.getStatusCode(), (boost::format(
"Invalid response code %1%") % response.getStatusCode()).str());
58 virtual std::string getURLSuffix() {
63 static const std::string CHANNEL_ID;
64 static const std::map<TransportType, ChannelDirection> SUPPORTED_TYPES;
HttpDataProcessor * getHttpDataProcessor()
virtual const std::string & getId() const
DefaultOperationHttpChannel(IKaaChannelManager &channelManager, const KeyPair &clientKeys, IKaaClientContext &context)
std::shared_ptr< IHttpRequest > createOperationRequest(const HttpUrl &url, const std::vector< std::uint8_t > &data)
virtual const std::map< TransportType, ChannelDirection > & getSupportedTransportTypes() const
std::string retrieveOperationResponse(const IHttpResponse &response)
std::shared_ptr< IPTransportInfo > IPTransportInfoPtr