17 #ifndef DEFAULTBOOTSTRAPCHANNEL_HPP_
18 #define DEFAULTBOOTSTRAPCHANNEL_HPP_
36 virtual const std::string&
getId()
const {
return CHANNEL_ID; }
40 virtual std::shared_ptr<IHttpRequest> createRequest(
IPTransportInfoPtr server,
const std::vector<std::uint8_t>& body)
47 virtual std::string retrieveResponse(
const IHttpResponse& response)
62 static const std::string CHANNEL_ID;
63 static const std::map<TransportType, ChannelDirection> SUPPORTED_TYPES;
std::string retrieveBootstrapResponse(const IHttpResponse &response)
HttpDataProcessor * getHttpDataProcessor()
virtual const std::string & getId() const
std::shared_ptr< IHttpRequest > createBootstrapRequest(const HttpUrl &url, const std::vector< std::uint8_t > &data)
virtual const std::map< TransportType, ChannelDirection > & getSupportedTransportTypes() const
virtual std::string getURLSuffix()
DefaultBootstrapChannel(IKaaChannelManager &channelManager, const KeyPair &clientKeys, IKaaClientContext &context)
std::shared_ptr< IPTransportInfo > IPTransportInfoPtr