Class HttpMessageConverterExtractor<T>

java.lang.Object
org.springframework.web.client.HttpMessageConverterExtractor<T>
Type Parameters:
T - the data type
All Implemented Interfaces:
ResponseExtractor<T>

public class HttpMessageConverterExtractor<T> extends Object implements ResponseExtractor<T>
Response extractor that uses the given entity converters to convert the response into a type T.
Since:
3.0
Author:
Arjen Poutsma, Sam Brannen
See Also:
  • Constructor Details

    • HttpMessageConverterExtractor

      public HttpMessageConverterExtractor(Class<T> responseType, List<HttpMessageConverter<?>> messageConverters)
      Create a new instance of the HttpMessageConverterExtractor with the given response type and message converters. The given converters must support the response type.
    • HttpMessageConverterExtractor

      public HttpMessageConverterExtractor(Type responseType, List<HttpMessageConverter<?>> messageConverters)
      Creates a new instance of the HttpMessageConverterExtractor with the given response type and message converters. The given converters must support the response type.
  • Method Details