Java Code Examples for org.apache.http.client.utils.URIBuilder#setQuery()
The following examples show how to use
org.apache.http.client.utils.URIBuilder#setQuery() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ResourceAddress.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
public static URI appendQueryStringToUri(URI uri, String parameterName, String parameterValue) { URI modifiedUri = null; try { URIBuilder uriBuilder = new URIBuilder(uri); uriBuilder.setQuery(parameterName + "=" + parameterValue); modifiedUri = uriBuilder.build(); } catch(Exception e) { throw new EFhirClientException("Unable to append query parameter '" + parameterName + "=" + parameterValue + " to URI " + uri, e); } return modifiedUri; }
Example 2
Source File: ResourceAddress.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
public static URI appendQueryStringToUri(URI uri, String parameterName, String parameterValue) { URI modifiedUri = null; try { URIBuilder uriBuilder = new URIBuilder(uri); uriBuilder.setQuery(parameterName + "=" + parameterValue); modifiedUri = uriBuilder.build(); } catch(Exception e) { throw new EFhirClientException("Unable to append query parameter '" + parameterName + "=" + parameterValue + " to URI " + uri, e); } return modifiedUri; }
Example 3
Source File: ResourceAddress.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
public static URI appendQueryStringToUri(URI uri, String parameterName, String parameterValue) { URI modifiedUri = null; try { URIBuilder uriBuilder = new URIBuilder(uri); uriBuilder.setQuery(parameterName + "=" + parameterValue); modifiedUri = uriBuilder.build(); } catch(Exception e) { throw new EFhirClientException("Unable to append query parameter '" + parameterName + "=" + parameterValue + " to URI " + uri, e); } return modifiedUri; }
Example 4
Source File: ResourceAddress.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
public static URI appendQueryStringToUri(URI uri, String parameterName, String parameterValue) { URI modifiedUri = null; try { URIBuilder uriBuilder = new URIBuilder(uri); uriBuilder.setQuery(parameterName + "=" + parameterValue); modifiedUri = uriBuilder.build(); } catch(Exception e) { throw new EFhirClientException("Unable to append query parameter '" + parameterName + "=" + parameterValue + " to URI " + uri, e); } return modifiedUri; }
Example 5
Source File: ResourceAddress.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
public static URI appendQueryStringToUri(URI uri, String parameterName, String parameterValue) { URI modifiedUri = null; try { URIBuilder uriBuilder = new URIBuilder(uri); uriBuilder.setQuery(parameterName + "=" + parameterValue); modifiedUri = uriBuilder.build(); } catch(Exception e) { throw new EFhirClientException("Unable to append query parameter '" + parameterName + "=" + parameterValue + " to URI " + uri, e); } return modifiedUri; }