public interface

ResponseExtractor

org.springframework.web.client.ResponseExtractor<T>
Known Indirect Subclasses

Class Overview

Generic callback interface used by RestTemplate's retrieval methods Implementations of this interface perform the actual work of extracting data from a ClientHttpResponse, but don't need to worry about exception handling or closing resources.

Used internally by the RestTemplate, but also useful for application code.

Summary

Public Methods
abstract T extractData(ClientHttpResponse response)
Extract data from the given ClientHttpResponse and return it.

Public Methods

public abstract T extractData (ClientHttpResponse response)

Extract data from the given ClientHttpResponse and return it.

Parameters
response the HTTP response
Returns
  • the extracted data
Throws
IOException in case of I/O errors