public HttpRequest addQueryStringParams(List<NameValuePair> nameValuePairs) { if (nameValuePairs != null) { for (NameValuePair nameValuePair : nameValuePairs) { uriBuilder.addParameter(nameValuePair.getName(), nameValuePair.getValue()); } } return this; }
@Override public URI getURI() { try { return uriBuilder.build(); } catch (URISyntaxException e) { ULog.e(e.getMessage(), e); return null; } }
public HttpRequest addQueryStringParameter(NameValuePair nameValuePair) { uriBuilder.addParameter(nameValuePair.getName(), nameValuePair.getValue()); return this; }
public HttpRequest addQueryStringParameter(String name, String value) { uriBuilder.addParameter(name, value); return this; }