Package io.bdeploy.jersey
Class JerseyObjectMapper
java.lang.Object
io.bdeploy.jersey.JerseyObjectMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
@Provider
public class JerseyObjectMapper
extends Object
implements jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
Provides a properly configured
ObjectMapper used for
(de-)serialization of JSON objects.-
Constructor Summary
ConstructorsConstructorDescriptionConstructor used on the server with injectionJerseyObjectMapper(Iterable<com.fasterxml.jackson.databind.Module> additional) Injection not available in the same way on the client - manual workaround. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMappergetContext(Class<?> type)
-
Constructor Details
-
JerseyObjectMapper
public JerseyObjectMapper()Constructor used on the server with injection -
JerseyObjectMapper
Injection not available in the same way on the client - manual workaround.
-
-
Method Details
-
getContext
- Specified by:
getContextin interfacejakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
-