@Configuration(proxyBeanMethods=false) public class HalMediaTypeConfiguration extends Object implements HypermediaMappingInformation
Constructor and Description |
---|
HalMediaTypeConfiguration(LinkRelationProvider relProvider,
ObjectProvider<CurieProvider> curieProvider,
ObjectProvider<HalConfiguration> halConfiguration,
MessageResolver resolver,
AutowireCapableBeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
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. |
List<MediaType> |
getMediaTypes()
All
MediaType s this hypermedia can handle. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getJacksonModule, getRootType
public HalMediaTypeConfiguration(LinkRelationProvider relProvider, ObjectProvider<CurieProvider> curieProvider, ObjectProvider<HalConfiguration> halConfiguration, MessageResolver resolver, AutowireCapableBeanFactory beanFactory)
public List<MediaType> getMediaTypes()
HypermediaMappingInformation
MediaType
s this hypermedia can handle.getMediaTypes
in interface HypermediaMappingInformation
public com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
HypermediaMappingInformation
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 HypermediaMappingInformation.getJacksonModule()
.configureObjectMapper
in interface HypermediaMappingInformation
HypermediaMappingInformation.getJacksonModule()
Copyright © 2011–2021 VMware, Inc.. All rights reserved.