comparison Core/RestApi/RestApiPath.cpp @ 975:c550e99c452b

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Jun 2014 14:53:18 +0200
parents 886652370ff2
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
974:83622b0f544c 975:c550e99c452b
76 components_[i] = ""; 76 components_[i] = "";
77 } 77 }
78 } 78 }
79 } 79 }
80 80
81 bool RestApiPath::Match(Components& components, 81 bool RestApiPath::Match(HttpHandler::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(Components& components, 90 bool RestApiPath::Match(HttpHandler::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 Components components; 138 HttpHandler::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