public class

HttpMessageConverterExtractor

extends Object
implements ResponseExtractor<T>
java.lang.Object
   ↳ org.springframework.web.client.HttpMessageConverterExtractor<T>

Class Overview

Response extractor that uses the given entity converters to convert the response into a type T.

See Also

Summary

Public Constructors
HttpMessageConverterExtractor(Class<T> responseType, List<HttpMessageConverter<?>> messageConverters)
Creates a new instance of the HttpMessageConverterExtractor with the given response type and message converters.
Public Methods
T extractData(ClientHttpResponse response)
Extract data from the given ClientHttpResponse and return it.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.web.client.ResponseExtractor

Public Constructors

public HttpMessageConverterExtractor (Class<T> 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.

Public Methods

public T extractData (ClientHttpResponse response)

Extract data from the given ClientHttpResponse and return it.

Parameters
response the HTTP response
Returns
  • the extracted data
Throws
IOException