接口 ResponseExtractor<T>
- 所有已知实现类:
HttpMessageConverterExtractor
public interface ResponseExtractor<T>
Generic callback interface used byRestTemplate
's retrieval methods Implementations of this interface perform the actual work of extracting data from aClientHttpResponse
, but don't need to worry about exception handling or closing resources.Used internally by the
RestTemplate
, but also useful for application code.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 T
extractData(ClientHttpResponse response)
Extract data from the givenClientHttpResponse
and return it.
方法详细资料
extractData
T extractData(ClientHttpResponse response) throws IOException
Extract data from the givenClientHttpResponse
and return it.- 参数:
response
- the HTTP response- 返回:
- the extracted data
- 抛出:
IOException
- in case of I/O errors