Class HttpMessageConverterExtractor<T>
java.lang.Object
org.springframework.web.client.HttpMessageConverterExtractor<T>
- Type Parameters:
T- the data type
- All Implemented Interfaces:
ResponseExtractor<T>
@Deprecated(since="7.1",
forRemoval=true)
public class HttpMessageConverterExtractor<T>
extends Object
implements ResponseExtractor<T>
Deprecated, for removal: This API element is subject to removal in a future version.
as of 7.1 with no replacement.
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 Summary
ConstructorsConstructorDescriptionHttpMessageConverterExtractor(Class<T> responseType, List<HttpMessageConverter<?>> messageConverters) Deprecated, for removal: This API element is subject to removal in a future version.Create a new instance of theHttpMessageConverterExtractorwith the given response type and message converters.HttpMessageConverterExtractor(Type responseType, List<HttpMessageConverter<?>> messageConverters) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of theHttpMessageConverterExtractorwith the given response type and message converters. -
Method Summary
Modifier and TypeMethodDescriptionextractData(ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Extract data from the givenClientHttpResponseand return it.protected MediaTypegetContentType(ClientHttpResponse response) Deprecated, for removal: This API element is subject to removal in a future version.Determine the Content-Type of the response based on the "Content-Type" header or otherwise default toMediaType.APPLICATION_OCTET_STREAM.
-
Constructor Details
-
HttpMessageConverterExtractor
public HttpMessageConverterExtractor(Class<T> responseType, List<HttpMessageConverter<?>> messageConverters) Deprecated, for removal: This API element is subject to removal in a future version.Create a new instance of theHttpMessageConverterExtractorwith the given response type and message converters. The given converters must support the response type. -
HttpMessageConverterExtractor
public HttpMessageConverterExtractor(Type responseType, List<HttpMessageConverter<?>> messageConverters) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of theHttpMessageConverterExtractorwith the given response type and message converters. The given converters must support the response type.
-
-
Method Details
-
extractData
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ResponseExtractorExtract data from the givenClientHttpResponseand return it.- Specified by:
extractDatain interfaceResponseExtractor<T>- Parameters:
response- the HTTP response- Returns:
- the extracted data
- Throws:
IOException- in case of I/O errors
-
getContentType
Deprecated, for removal: This API element is subject to removal in a future version.Determine the Content-Type of the response based on the "Content-Type" header or otherwise default toMediaType.APPLICATION_OCTET_STREAM.- Parameters:
response- the response- Returns:
- the MediaType, or "application/octet-stream"
-