接口的使用
cn.taketoday.web.client.RequestCallback
使用RequestCallback的程序包
-
cn.taketoday.web.client中RequestCallback的使用
修饰符和类型类说明private classRequest callback implementation that prepares the request's accept headers.private classRequest callback implementation that writes the given object to the request stream.修饰符和类型方法说明<T> RequestCallbackRestTemplate.acceptHeaderRequestCallback(Class<T> responseType) Return aRequestCallbackthat sets the requestAcceptheader based on the given response type, cross-checked against the configured message converters.RestTemplate.httpEntityCallback(Object requestBody) Return aRequestCallbackimplementation that writes the given object to the request stream.RestTemplate.httpEntityCallback(Object requestBody, Type responseType) Return aRequestCallbackimplementation that: Sets the requestAcceptheader based on the given response type, cross-checked against the configured message converters.参数类型为RequestCallback的cn.taketoday.web.client中的方法修饰符和类型方法说明protected <T> TRestTemplate.doExecute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) Execute the given method on the provided URI.<T> TRestOperations.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> TRestOperations.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> TRestOperations.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> TRestTemplate.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> TRestTemplate.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> TRestTemplate.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.