comparison Core/RestApi/RestApiPath.cpp @ 1441:f3672356c121

refactoring: IHttpHandler and HttpToolbox
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Jul 2015 10:38:39 +0200
parents 6e7e5ed91c2d
children b1291df2f780
comparison
equal deleted inserted replaced
1440:3567503c00a7 1441:f3672356c121
76 components_[i] = ""; 76 components_[i] = "";
77 } 77 }
78 } 78 }
79 } 79 }
80 80
81 bool RestApiPath::Match(HttpHandler::Arguments& components, 81 bool RestApiPath::Match(IHttpHandler::Arguments& components,
82 UriComponents& trailing, 82 UriComponents& trailing,
83 const std::string& uriRaw) const 83 const std::string& uriRaw) const
84 { 84 {
85 UriComponents uri; 85 UriComponents uri;
86 Toolbox::SplitUriComponents(uri, uriRaw); 86 Toolbox::SplitUriComponents(uri, uriRaw);
87 return Match(components, trailing, uri); 87 return Match(components, trailing, uri);
88 } 88 }
89 89
90 bool RestApiPath::Match(HttpHandler::Arguments& components, 90 bool RestApiPath::Match(IHttpHandler::Arguments& components,
91 UriComponents& trailing, 91 UriComponents& trailing,
92 const UriComponents& uri) const 92 const UriComponents& uri) const
93 { 93 {
94 assert(uri_.size() == components_.size()); 94 assert(uri_.size() == components_.size());
95 95
133 } 133 }
134 134
135 135
136 bool RestApiPath::Match(const UriComponents& uri) const 136 bool RestApiPath::Match(const UriComponents& uri) const
137 { 137 {
138 HttpHandler::Arguments components; 138 IHttpHandler::Arguments components;
139 UriComponents trailing; 139 UriComponents trailing;
140 return Match(components, trailing, uri); 140 return Match(components, trailing, uri);
141 } 141 }
142 142
143 143