Class WebConverters

java.lang.Object
org.springframework.hateoas.config.WebConverters

public class WebConverters extends Object
Value type to handle registration of hypermedia related HttpMessageConverters.
Author:
Oliver Drotbohm
  • Method Details

    • of

      public static WebConverters of(tools.jackson.databind.json.JsonMapper mapper, List<HypermediaMappingInformation> mappingInformations)
      Creates a new WebConverters from the given JsonMapper and HypermediaMappingInformations.
      Parameters:
      mapper - must not be null.
      mappingInformations - must not be null.
      Returns:
    • augmentServer

      public void augmentServer(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)
      Augments the given List of HttpMessageConverters with the hypermedia enabled ones.
      Parameters:
      converters - must not be null.
    • augmentClient

      public void augmentClient(List<org.springframework.http.converter.HttpMessageConverter<?>> converters)