Class WebConverters
java.lang.Object
org.springframework.hateoas.config.WebConverters
Value type to handle registration of hypermedia related
HttpMessageConverters.- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionvoidaugmentClient(List<HttpMessageConverter<?>> converters) voidaugmentServer(List<HttpMessageConverter<?>> converters) Augments the givenListofHttpMessageConverters with the hypermedia enabled ones.static WebConvertersof(com.fasterxml.jackson.databind.ObjectMapper mapper, List<HypermediaMappingInformation> mappingInformations)
-
Method Details
-
of
public static WebConverters of(com.fasterxml.jackson.databind.ObjectMapper mapper, List<HypermediaMappingInformation> mappingInformations) - Parameters:
mapper- must not be null.mappingInformations- must not be null.- Returns:
-
augmentServer
Augments the givenListofHttpMessageConverters with the hypermedia enabled ones.- Parameters:
converters- must not be null.
-
augmentClient
-