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
ConstructorsConstructorDescriptionJsonApiMediaTypeConfiguration(@Nullable org.springframework.beans.factory.ObjectProvider<JsonApiConfiguration> configuration, org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory) Creates a newJsonApiMediaTypeConfiguration. -
Method Summary
Modifier and TypeMethodDescriptiontools.jackson.databind.json.JsonMapper.BuilderconfigureJsonMapper(tools.jackson.databind.json.JsonMapper.Builder builder) List<org.springframework.http.MediaType> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.hateoas.config.HypermediaMappingInformation
getJacksonModule, getRootType
-
Constructor Details
-
JsonApiMediaTypeConfiguration
public JsonApiMediaTypeConfiguration(@Nullable org.springframework.beans.factory.ObjectProvider<JsonApiConfiguration> configuration, org.springframework.beans.factory.config.AutowireCapableBeanFactory beanFactory) Creates a newJsonApiMediaTypeConfiguration.- Parameters:
configuration- theJsonApiConfigurationobject providerbeanFactory- the Spring bean factory
-
-
Method Details
-
getMediaTypes
- Specified by:
getMediaTypesin interfaceorg.springframework.hateoas.config.HypermediaMappingInformation
-
configureJsonMapper
public tools.jackson.databind.json.JsonMapper.Builder configureJsonMapper(tools.jackson.databind.json.JsonMapper.Builder builder) - Specified by:
configureJsonMapperin interfaceorg.springframework.hateoas.config.HypermediaMappingInformation
-