17 #ifndef DEFAULTOPERATIONHTTPCHANNEL_HPP_
18 #define DEFAULTOPERATIONHTTPCHANNEL_HPP_
29 virtual const std::string&
getId()
const {
return CHANNEL_ID; }
33 virtual boost::shared_ptr<IHttpRequest> createRequest(
AbstractServerInfoPtr server,
const std::vector<boost::uint8_t>& body)
38 virtual std::string retrieveResponse(
const IHttpResponse& response)
40 if (response.getStatusCode() != 200) {
41 throw TransportException(boost::format(
"Invalid response code %1%") % response.getStatusCode());
51 static const std::string CHANNEL_ID;
52 static const std::map<TransportType, ChannelDirection> SUPPORTED_TYPES;
std::pair< Botan::MemoryVector< boost::uint8_t >, std::string > KeyPair
virtual const std::string & getId() const
virtual ~DefaultOperationHttpChannel()
boost::shared_ptr< IHttpRequest > createOperationRequest(const HttpUrl &url, const std::vector< boost::uint8_t > &data)
DefaultOperationHttpChannel(IKaaChannelManager *channelManager, const KeyPair &clientKeys)
HttpDataProcessor * getHttpDataProcessor()
virtual const std::map< TransportType, ChannelDirection > & getSupportedTransportTypes() const
boost::shared_ptr< AbstractServerInfo< Type > > AbstractServerInfoPtr
std::string retrieveOperationResponse(const IHttpResponse &response)