...
Since 3.1.8+, this behavior could be tweaked using server-side "parse.query.value.as.collection" property, which adds support for collection/list parameters passed as comma-separated values, , for example: http://localhost:8080/MovieDB/GetJson?name=Actor1,Actor2,Actor3&startDate=20120101&endDate=2012050
The client support was lacking and was added in 3.3.4 / 3.2.11 / 3.4.0 for all types of the clients (WebClient, JAX-RS Client Proxy and Microprofile Client). The matching property name is "expand.query.value.as.collection" and could be specified during the client instance creation, for example:
Code Block |
---|
|
MyClient client = JAXRSClientFactory
.create("http://localhost:8080", MyClient.class,
Collections.singletonMap("expand.query.value.as.collection", "true")); |
Code Block |
---|
|
WebClient client = WebClient.create("http://localhost:8080",
Collections.singletonMap("expand.query.value.as.collection", "true")); |
Code Block |
---|
|
MyClient client = RestClientBuilder
.newBuilder()
.property("expand.query.value.as.collection", "true")
.baseUri(new URI("http://localhost:8080"))
.build(MyClient.class);
"parse.query.value.as.collection" |