public interface HypermediaMappingInformation
Modifier and Type | Method and Description |
---|---|
default com.fasterxml.jackson.databind.ObjectMapper |
configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
Configure an
ObjectMapper and register custom serializers and deserializers for the supported media types. |
default com.fasterxml.jackson.databind.Module |
getJacksonModule()
Optionally return the Jackson
Module to be used to customize the serialization of representation models. |
List<org.springframework.http.MediaType> |
getMediaTypes()
All
MediaType s this hypermedia can handle. |
List<org.springframework.http.MediaType> getMediaTypes()
MediaType
s this hypermedia can handle.default com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
ObjectMapper
and register custom serializers and deserializers for the supported media types.
If all you want to do is register a Jackson Module
, prefer implementing getJacksonModule()
.getJacksonModule()
default com.fasterxml.jackson.databind.Module getJacksonModule()
Module
to be used to customize the serialization of representation models.
Override this if there's nothing but the module to be done to setup the ObjectMapper
. For more advanced
needs, see configureObjectMapper(ObjectMapper)
.configureObjectMapper(ObjectMapper)
Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.