Class WebConverters
java.lang.Object
org.springframework.hateoas.config.WebConverters
Value type to handle registration of hypermedia related
HttpMessageConverter
s.- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionvoid
augmentClient
(List<HttpMessageConverter<?>> converters) void
augmentServer
(List<HttpMessageConverter<?>> converters) Augments the givenList
ofHttpMessageConverter
s with the hypermedia enabled ones.static WebConverters
of
(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 givenList
ofHttpMessageConverter
s with the hypermedia enabled ones.- Parameters:
converters
- must not be null.
-
augmentClient
-