// Render base URL
http.renderRequestURL(appendable);
// Render path
UriBuilder writer = new UriBuilder(appendable, mimeType);
match.render(writer);
// Retain matched parameters for filtering later
Set<String> matched = match.getMatched().isEmpty() ? Collections.<String>emptySet() : new HashSet<String>(match.getMatched().size());
for (PathParam param : match.getMatched().keySet()) {
matched.add(param.getName());
}
// Render remaining parameters which have not been rendered yet
for (ResponseParameter parameter : parameters.values()) {
if (!matched.contains(parameter.getName())) {
for (int i = 0;i < parameter.size();i++) {
writer.appendQueryParameter(parameter.getEncoding(), parameter.getName(), parameter.get(i));
}
}
}
}
};