public interface JacksonCustomizer<C extends io.dropwizard.Configuration>
Modifier and Type | Method and Description |
---|---|
PlatformBundleBuilder<C> |
alwaysWriteZonedDateTimeWithMillisInJson()
Registers a default serializer for
ZonedDateTime that renders 3 digits of milliseconds. |
PlatformBundleBuilder<C> |
alwaysWriteZonedDateTimeWithoutMillisInJson()
Registers a default serializer for
ZonedDateTime that renders no milliseconds. |
PlatformBundleBuilder<C> |
withObjectMapperCustomization(java.util.function.Consumer<com.fasterxml.jackson.databind.ObjectMapper> customizer)
Allows customization of the used
ObjectMapper . |
PlatformBundleBuilder<C> |
withoutFieldFilter()
Disables the field filter entirely.
|
PlatformBundleBuilder<C> |
withoutHalSupport()
Skips registration of the HAL module.
|
PlatformBundleBuilder<C> withoutHalSupport()
PlatformBundleBuilder<C> withoutFieldFilter()
EnableFieldFilter
for each resource.PlatformBundleBuilder<C> withObjectMapperCustomization(java.util.function.Consumer<com.fasterxml.jackson.databind.ObjectMapper> customizer)
ObjectMapper
. More customizers may be added by calling
this method multiple times.customizer
- receives the used ObjectMapper
for customization, e.g. to enable or
disable specific features or configure formatting.PlatformBundleBuilder<C> alwaysWriteZonedDateTimeWithMillisInJson()
ZonedDateTime
that renders 3 digits of milliseconds.
The same serializer may be configured per field as documented in Iso8601Serializer.WithMillis
.
This setting overwrites the default behaviour of Jackson which omits milliseconds if they are zero or adds nanoseconds if they are set.
PlatformBundleBuilder<C> alwaysWriteZonedDateTimeWithoutMillisInJson()
ZonedDateTime
that renders no milliseconds. The same
serializer may be configured per field as documented in Iso8601Serializer
.
This setting overwrites the default behaviour of Jackson which omits milliseconds if they are zero or adds nanoseconds if they are set.