title: Migration from JAX-RS 1.x to 2.x (Jersey) - set QueryParams as Map?
body: <p>With Jersey 1.x you used to be able to set QueryParams as a Map in its Client API:</p>
  
  <pre><code>// Jersey 1.x Client API
  MultivaluedMap&lt;String, String&gt; queryParams = ....
  webResource.queryParams(queryParams);
  </code></pre>
  
  <p>We are now migrating to JAX-RS 2.x and want to use its new Client API. There doesn't seem to be any possibility to use a map of queryparams in one call, it looks like you need to set every single query param in a loop:</p>
  
  <pre><code>// JAX-RS 2.x Client API
  MultivaluedMap&lt;String, String&gt; queryParams = ....
  for (Entry&lt;String, List&lt;String&gt;&gt; entry : queryParams.entrySet()) {
      webTarget.queryParam(entry.getKey(), value();
      // in case of multiple keys per value, we even need to use an inner loop...
  }
  </code></pre>
  
  <p>For obvious reasons, this is pretty tedious and annoying - can someone confirm that this is actually the only way to solve this with JAX-RS 2 or am I missing something?</p>