keycloak/server-spi-private
Thomas Darimont ddc79039ed
Improve SimpleHttp API (#46171)
* Improve SimpleHttp API

- Expose configured HTTP method from SimpleHttpRequest
- Use same ObjectMapper configuration as in JsonSerialization used by the deprecated SimpleHTTP
- Allow to configure the ObjectMapper to use by SimpleHttp
- Expose ObjectMapper factory methods in JsonSerialization

Fixes #43701

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>

* Revise ObjectMapper creation methods in JsonSerialization

Replace usage of deprecated method
```
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
```
with supported variant.

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>

* Use JsonSerialization.mapper directly in SimpleHttp

Co-authored-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>

---------

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
Co-authored-by: Martin Bartoš <mabartos@redhat.com>
2026-02-18 06:56:11 +01:00
..
src Improve SimpleHttp API (#46171) 2026-02-18 06:56:11 +01:00
pom.xml Add missing artifact descriptions to allow Maven Central Portal Publisher pass validation process. (#40822) 2025-08-12 16:50:17 +02:00