jekkel 0be0a06d84
[Java][Client][vert.x] Support per-call authentication and JsonNullable in client request bodies, fix path parameter encoding (#5732)
* Support per-call authentication and JsonNullable in client request bodies

Extensions
----------
Since vertx is an asynchronous/reactive toolkit usage of mutable fields
of `ApiClient` to store authentication prohibits delegation of
authentication from incoming call without recreating the client
everytime (which is prohibitively expensive due to instantiation of objectmapper).
This commit adds a per call authentication override which takes precedence
over the mutable fields so a single client can be safely reused. To ease
usage a simple builder-style auxiliary `AuthInfo` object is provided
providing methods for each specified authentication.

A new configuration option for `ApiClient` has been added: `timeout`. It gets
applied as timeout for the vertx http request.

Fixes
-----
Request bodies have been wrongly serialized using vert.x built-in
objectmapper instead of the embedded instance thus usage of beans with
`JsonNullable` wrapped fields in request bodies led to bad requests.

* update vertx samples

* Client Java Vertx: Add url encode for path parameters.

* update vertx samples
2020-07-08 16:30:31 +08:00
..
2020-01-02 13:20:29 +08:00
2020-05-23 15:47:10 +08:00
2020-05-15 09:44:00 +08:00
2020-05-27 16:27:34 +08:00
2020-04-21 10:04:42 +08:00
2020-06-21 19:12:46 +08:00
2020-07-03 18:51:31 +08:00
2020-07-03 18:51:31 +08:00
2020-07-03 18:51:31 +08:00
2020-06-10 17:20:16 +08:00
2020-06-12 15:49:26 +08:00
2020-06-12 17:36:54 +08:00