Uses of Class
org.springframework.hateoas.mediatype.hal.HalConfiguration
Packages that use HalConfiguration
Package
Description
HAL-specific extensions, SPIs and Jackson customizations.
HAL-FORMS extension media type.
-
Uses of HalConfiguration in org.springframework.hateoas.mediatype.hal
Methods in org.springframework.hateoas.mediatype.hal that return HalConfigurationModifier and TypeMethodDescriptionHalConfiguration.customize
(com.fasterxml.jackson.databind.ObjectMapper mapper) HalConfiguration.withApplyPropertyNamingStrategy
(boolean applyPropertyNamingStrategy) Create a newHalConfiguration
by copying the attributes and replacing the applyProperNamingStrategy.HalConfiguration.withEnforceEmbeddedCollections
(boolean enforceEmbeddedCollections) Create a newHalConfiguration
by copying the attributes and replacing the enforceEmbeddedCollections.HalConfiguration.withMediaType
(MediaType mediaType) Registers additional media types that are supposed to be aliases toMediaTypes.HAL_JSON
.HalConfiguration.withObjectMapperCustomizer
(Consumer<com.fasterxml.jackson.databind.ObjectMapper> objectMapperCustomizer) Configures anObjectMapper
customizer to tweak the instance after it has been pre-configured with all HAL specific setup.HalConfiguration.withRenderSingleLinks
(HalConfiguration.RenderSingleLinks renderSingleLinks) Create a newHalConfiguration
by copying the attributes and replacing the renderSingleLinks.HalConfiguration.withRenderSingleLinksFor
(String pattern, HalConfiguration.RenderSingleLinks renderSingleLinks) Configures how to render a single link for the given link relation pattern, i.e. this can be either a fixed link relation (likesearch
), take wildcards to e.g. match links of a given curie (likeacme:*
) or even complete URIs (likehttps://api.acme.com/foo/**
).HalConfiguration.withRenderSingleLinksFor
(LinkRelation relation, HalConfiguration.RenderSingleLinks renderSingleLinks) Configures how to render a single link for a given particularLinkRelation
.Constructors in org.springframework.hateoas.mediatype.hal with parameters of type HalConfigurationModifierConstructorDescriptionHalHandlerInstantiator
(LinkRelationProvider provider, CurieProvider curieProvider, MessageResolver resolver, HalConfiguration halConfiguration, AutowireCapableBeanFactory delegate) HalLinkListSerializer
(com.fasterxml.jackson.databind.BeanProperty property, CurieProvider curieProvider, Jackson2HalModule.EmbeddedMapper mapper, MessageResolver resolver, HalConfiguration halConfiguration) HalLinkListSerializer
(CurieProvider curieProvider, Jackson2HalModule.EmbeddedMapper mapper, MessageResolver resolver, HalConfiguration halConfiguration) HalResourcesSerializer
(Jackson2HalModule.EmbeddedMapper embeddedMapper, HalConfiguration configuration) HalResourcesSerializer
(Jackson2HalModule.EmbeddedMapper embeddedMapper, HalConfiguration configuration, com.fasterxml.jackson.databind.BeanProperty property) OptionalListJackson2Serializer
(com.fasterxml.jackson.databind.BeanProperty property, HalConfiguration halConfiguration) Creates a newJackson2HalModule.OptionalListJackson2Serializer
using the givenBeanProperty
. -
Uses of HalConfiguration in org.springframework.hateoas.mediatype.hal.forms
Methods in org.springframework.hateoas.mediatype.hal.forms that return HalConfigurationModifier and TypeMethodDescriptionHalFormsConfiguration.getHalConfiguration()
Returns the underlyingHalConfiguration
.Constructors in org.springframework.hateoas.mediatype.hal.forms with parameters of type HalConfigurationModifierConstructorDescriptionHalFormsConfiguration
(HalConfiguration halConfiguration) Creates a newHalFormsConfiguration
for the givenHalConfiguration
.