54 std::wregex url = std::wregex(L".*"); |
54 std::wregex url = std::wregex(L".*"); |
55 relpipe::common::type::StringX name; |
55 relpipe::common::type::StringX name; |
56 relpipe::common::type::StringX value; |
56 relpipe::common::type::StringX value; |
57 |
57 |
58 bool matches(const relpipe::common::type::StringX& request, const relpipe::common::type::StringX& url) const { |
58 bool matches(const relpipe::common::type::StringX& request, const relpipe::common::type::StringX& url) const { |
59 bool result = false; |
59 bool result = true; |
60 result |= std::regex_match(request, this->request); |
60 result &= std::regex_match(request, this->request); |
61 result |= std::regex_match(url, this->url); |
61 result &= std::regex_match(url, this->url); |
62 return result; |
62 return result; |
63 } |
63 } |
64 }; |
64 }; |
65 |
65 |
66 std::wstring_convert<codecvt_utf8<wchar_t>> convertor; // TODO: support also other encodings. |
66 std::wstring_convert<codecvt_utf8<wchar_t>> convertor; // TODO: support also other encodings. |
67 shared_ptr<relpipe::writer::RelationalWriter> relationalWriter; |
67 shared_ptr<relpipe::writer::RelationalWriter> relationalWriter; |
68 Configuration configuration; |
68 Configuration configuration; |
69 relpipe::common::type::StringX currentRelationName; |
69 relpipe::common::type::StringX currentRelationName; |
70 std::vector<relpipe::reader::handlers::AttributeMetadata> currentReaderMetadata; |
70 std::vector<relpipe::reader::handlers::AttributeMetadata> currentReaderMetadata; |
71 std::vector<relpipe::writer::AttributeMetadata> currentWriterMetadata; |
|
72 HeaderDefinition requestHeader; |
71 HeaderDefinition requestHeader; |
73 relpipe::common::type::StringX requestId; |
72 relpipe::common::type::StringX requestId; |
74 HTTPClient::Request request; |
73 HTTPClient::Request request; |
75 std::vector<HeaderDefinition> requestHeaders; |
74 std::vector<HeaderDefinition> requestHeaders; |
76 std::vector<relpipe::common::type::StringX> responseHeaders; |
75 std::vector<relpipe::common::type::StringX> responseHeaders; |