You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
675 B
C++
30 lines
675 B
C++
#ifndef WEBCC_SOAP_REQUEST_HANDLER_H_
|
|
#define WEBCC_SOAP_REQUEST_HANDLER_H_
|
|
|
|
#include <map>
|
|
#include <string>
|
|
|
|
#include "webcc/http_request_handler.h"
|
|
|
|
namespace webcc {
|
|
|
|
class SoapRequestHandler : public HttpRequestHandler {
|
|
public:
|
|
SoapRequestHandler() = default;
|
|
~SoapRequestHandler() override = default;
|
|
|
|
bool Bind(SoapServicePtr service, const std::string& url);
|
|
|
|
private:
|
|
void HandleConnection(HttpConnectionPtr connection) override;
|
|
|
|
SoapServicePtr GetServiceByUrl(const std::string& url);
|
|
|
|
typedef std::map<std::string, SoapServicePtr> UrlServiceMap;
|
|
UrlServiceMap url_service_map_;
|
|
};
|
|
|
|
} // namespace webcc
|
|
|
|
#endif // WEBCC_SOAP_REQUEST_HANDLER_H_
|