接口的使用
org.springframework.web.client.ResponseExtractor
使用ResponseExtractor的程序包 程序包 说明 org.springframework.web.client Core package of the client-side web support.org.springframework.web.client中ResponseExtractor的使用
实现ResponseExtractor的org.springframework.web.client中的类 修饰符和类型 类 说明 class
HttpMessageConverterExtractor<T>
Response extractor that uses the given entity converters to convert the response into a typeT
.返回ResponseExtractor的org.springframework.web.client中的方法 修饰符和类型 方法 说明 protected ResponseExtractor<HttpHeaders>
AsyncRestTemplate. headersExtractor()
已过时。Returns a response extractor forHttpHeaders
.protected ResponseExtractor<HttpHeaders>
RestTemplate. headersExtractor()
Return a response extractor forHttpHeaders
.protected <T> ResponseExtractor<ResponseEntity<T>>
AsyncRestTemplate. responseEntityExtractor(Type responseType)
已过时。Returns a response extractor forResponseEntity
.<T> ResponseExtractor<ResponseEntity<T>>
RestTemplate. responseEntityExtractor(Type responseType)
Return aResponseExtractor
that prepares aResponseEntity
.参数类型为ResponseExtractor的org.springframework.web.client中的方法 修饰符和类型 方法 说明 protected <T> ListenableFuture<T>
AsyncRestTemplate. doExecute(URI url, HttpMethod method, AsyncRequestCallback requestCallback, ResponseExtractor<T> responseExtractor)
已过时。Execute the given method on the provided URI.protected <T> T
RestTemplate. doExecute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor)
Execute the given method on the provided URI.<T> ListenableFuture<T>
AsyncRestOperations. execute(String url, HttpMethod method, AsyncRequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables)
已过时。Asynchronously execute the HTTP method to the given URI template, preparing the request with theAsyncRequestCallback
, and reading the response with aResponseExtractor
.<T> ListenableFuture<T>
AsyncRestOperations. execute(String url, HttpMethod method, AsyncRequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String,?> uriVariables)
已过时。Asynchronously execute the HTTP method to the given URI template, preparing the request with theAsyncRequestCallback
, and reading the response with aResponseExtractor
.<T> ListenableFuture<T>
AsyncRestOperations. execute(URI url, HttpMethod method, AsyncRequestCallback requestCallback, ResponseExtractor<T> responseExtractor)
已过时。Asynchronously execute the HTTP method to the given URL, preparing the request with theAsyncRequestCallback
, and reading the response with aResponseExtractor
.<T> ListenableFuture<T>
AsyncRestTemplate. execute(String url, HttpMethod method, AsyncRequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables)
已过时。<T> ListenableFuture<T>
AsyncRestTemplate. execute(String url, HttpMethod method, AsyncRequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String,?> uriVariables)
已过时。<T> ListenableFuture<T>
AsyncRestTemplate. execute(URI url, HttpMethod method, AsyncRequestCallback requestCallback, ResponseExtractor<T> responseExtractor)
已过时。<T> T
RestOperations. execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables)
Execute the HTTP method to the given URI template, preparing the request with theRequestCallback
, and reading the response with aResponseExtractor
.<T> T
RestOperations. execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String,?> uriVariables)
Execute the HTTP method to the given URI template, preparing the request with theRequestCallback
, and reading the response with aResponseExtractor
.<T> T
RestOperations. execute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor)
Execute the HTTP method to the given URL, preparing the request with theRequestCallback
, and reading the response with aResponseExtractor
.<T> T
RestTemplate. execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables)
Execute the HTTP method to the given URI template, preparing the request with theRequestCallback
, and reading the response with aResponseExtractor
.<T> T
RestTemplate. execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String,?> uriVariables)
Execute the HTTP method to the given URI template, preparing the request with theRequestCallback
, and reading the response with aResponseExtractor
.<T> T
RestTemplate. execute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor)
Execute the HTTP method to the given URL, preparing the request with theRequestCallback
, and reading the response with aResponseExtractor
.