Sets the Query Parameters. @param queries to use for this request. @return a RequestTemplate for chaining.
(Map<String, Collection<String>> queries)
| 691 | * @return a RequestTemplate for chaining. |
| 692 | */ |
| 693 | @SuppressWarnings("unused") |
| 694 | public RequestTemplate queries(Map<String, Collection<String>> queries) { |
| 695 | if (queries == null || queries.isEmpty()) { |
| 696 | this.queries.clear(); |
| 697 | } else { |
| 698 | queries.forEach(this::query); |
| 699 | } |
| 700 | return this; |
| 701 | } |
| 702 | |
| 703 | /** |
| 704 | * Return an immutable Map of all Query Parameters and their values. |