Class JsonApiMediaTypeConfiguration
java.lang.Object
com.toedter.spring.hateoas.jsonapi.JsonApiMediaTypeConfiguration
- All Implemented Interfaces:
org.springframework.hateoas.config.HypermediaMappingInformation
@Configuration
public class JsonApiMediaTypeConfiguration
extends Object
implements org.springframework.hateoas.config.HypermediaMappingInformation
Spring configuration for JSON:API support.
-
Constructor Summary
ConstructorDescriptionJsonApiMediaTypeConfiguration
(org.springframework.beans.factory.ObjectProvider<JsonApiConfiguration> configuration, org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapper
configureObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper mapper) com.fasterxml.jackson.databind.Module
List<org.springframework.http.MediaType>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.hateoas.config.HypermediaMappingInformation
getRootType
-
Constructor Details
-
JsonApiMediaTypeConfiguration
public JsonApiMediaTypeConfiguration(org.springframework.beans.factory.ObjectProvider<JsonApiConfiguration> configuration, org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory)
-
-
Method Details
-
getMediaTypes
- Specified by:
getMediaTypes
in interfaceorg.springframework.hateoas.config.HypermediaMappingInformation
-
getJacksonModule
public com.fasterxml.jackson.databind.Module getJacksonModule()- Specified by:
getJacksonModule
in interfaceorg.springframework.hateoas.config.HypermediaMappingInformation
-
configureObjectMapper
@NonNull public com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper(@NonNull com.fasterxml.jackson.databind.ObjectMapper mapper) - Specified by:
configureObjectMapper
in interfaceorg.springframework.hateoas.config.HypermediaMappingInformation
-