So done


On Fri, Feb 21, 2014 at 1:16 PM, alxdarksage <notifications@github.com>wrote:

> In
> client/bridgeJavaClient/src/main/java/org/sagebionetworks/client/BridgeClientImpl.java:
>
> > +	 * @return
> > +	 */
> > +	private String appendParams(String uri, Object... keyValues) {
> > +		StringBuilder newUri = new StringBuilder(uri);
> > +		boolean first = true;
> > +		for (int i = 0; i < keyValues.length; i += 2) {
> > +			Object key = keyValues[i];
> > +			Object value = keyValues[i + 1];
> > +			if (value != null) {
> > +				newUri.append(first ? '?' : '&');
> > +				first = false;
> > +				newUri.append(key.toString()).append('=').append(value.toString());
> > +			}
> > +		}
> > +		return newUri.toString();
> > +	}
>
> Library like URIBuilder (Apache http client) would make it simpler to
> manipulate the parameters (the Apache HTTP client version, not the Java WS
> version).
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Sage-Bionetworks/Synapse-Repository-Services/pull/1082/files#r9962432>
> .
>