use of org.apache.jena.sparql.engine.http.Params.Pair in project jena by apache.
the class HttpOp method convertFormParams.
private static HttpEntity convertFormParams(Params params) {
List<NameValuePair> nvps = new ArrayList<>();
for (Pair p : params.pairs()) nvps.add(new BasicNameValuePair(p.getName(), p.getValue()));
HttpEntity e = new UrlEncodedFormEntity(nvps, StandardCharsets.UTF_8);
return e;
}
Aggregations