| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.ObjectMapper |
buildDefaultObjectMapper()
Build default configuration for
ObjectMapper. |
static ApiJsonSerializer |
getInstance() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper()
Get the configured
ObjectMapper. |
void |
withCustomObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
!!! Use with caution !!!
|
public static ApiJsonSerializer getInstance()
public com.fasterxml.jackson.databind.ObjectMapper buildDefaultObjectMapper()
ObjectMapper.ObjectMapper.public void withCustomObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
This method represents an extension point for the json serialization. It's recommended that the API uses the default serialization config, but in case custom serialization config is needed, then this method can be used.
Recommendation is to start from buildDefaultObjectMapper(), add
custom config and then call this method before instantiating GeotabApi.
objectMapper - The custom ObjectMapper.public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
ObjectMapper.ObjectMapper.Copyright © 2023. All rights reserved.