@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
MediaTypes this hypermedia can handle. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJacksonModule, getRootTypepublic HalMediaTypeConfiguration(LinkRelationProvider relProvider, ObjectProvider<CurieProvider> curieProvider, ObjectProvider<HalConfiguration> halConfiguration, MessageResolver resolver, AutowireCapableBeanFactory beanFactory)
public List<MediaType> getMediaTypes()
HypermediaMappingInformationMediaTypes this hypermedia can handle.getMediaTypes in interface HypermediaMappingInformationpublic com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
HypermediaMappingInformationObjectMapper 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 HypermediaMappingInformationHypermediaMappingInformation.getJacksonModule()Copyright © 2011–2020 Pivotal, Inc.. All rights reserved.