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