extends
Object
implements
ResponseExtractor
<T>
Response extractor that uses the given
entity converters
to convert the response into a type
T
.
Since:
Author:
Arjen Poutsma, Sam Brannen
See Also:
RestTemplate
Create a new instance of the
HttpMessageConverterExtractor
with the given response
type and message converters.
Creates a new instance of the
HttpMessageConverterExtractor
with the given response
type and message converters.
Extract data from the given
ClientHttpResponse
and return it.
HttpMessageConverterExtractor
Create a new instance of the
HttpMessageConverterExtractor
with the given response
type and message converters. The given converters must support the response type.
HttpMessageConverterExtractor
Creates a new instance of the
HttpMessageConverterExtractor
with the given response
type and message converters. The given converters must support the response type.
Extract data from the given
ClientHttpResponse
and return it.
Specified by:
extractData
in interface
ResponseExtractor
<
T
>
Parameters:
response
- the HTTP response
Returns:
the extracted data
Throws:
IOException
- in case of I/O errors
getContentType
Parameters:
response
- the response
Returns:
the MediaType, or "application/octet-stream"