# Uses of Interface
org.springframework.web.client.RequestCallback

Packages that use RequestCallback
Package
Description
org.springframework.web.client
Core package of the client-side web support.

## Uses of RequestCallback in org.springframework.web.client

Methods in org.springframework.web.client that return RequestCallback
Modifier and Type
Method
Description
`<T> RequestCallback`
RestTemplate.`acceptHeaderRequestCallback(Class<T> responseType)`
Return a `RequestCallback` that sets the request `Accept` header based on the given response type, cross-checked against the configured message converters.
`<T> RequestCallback`
RestTemplate.`httpEntityCallback(Object requestBody)`
Return a `RequestCallback` implementation that writes the given object to the request stream.
`<T> RequestCallback`
RestTemplate.`httpEntityCallback(Object requestBody, Type responseType)`
Return a `RequestCallback` implementation that: Sets the request `Accept` header based on the given response type, cross-checked against the configured message converters.
Methods in org.springframework.web.client with parameters of type RequestCallback
Modifier and Type
Method
Description
`protected <T> T`
RestTemplate.`doExecute(URI url, String uriTemplate, HttpMethod method, RequestCallback 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)`
Deprecated.
in favor of `RestTemplate.doExecute(URI, String, HttpMethod, RequestCallback, ResponseExtractor)`
`<T> T`
RestOperations.`execute(String uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables)`
Execute the HTTP method to the given URI template, preparing the request with the `RequestCallback`, and reading the response with a `ResponseExtractor`.
`<T> T`
RestOperations.`execute(String uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String,?> uriVariables)`
Execute the HTTP method to the given URI template, preparing the request with the `RequestCallback`, and reading the response with a `ResponseExtractor`.
`<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 the `RequestCallback`, and reading the response with a `ResponseExtractor`.
`<T> T`
RestTemplate.`execute(String uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables)`
Execute the HTTP method to the given URI template, preparing the request with the `RequestCallback`, and reading the response with a `ResponseExtractor`.
`<T> T`
RestTemplate.`execute(String uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String,?> uriVariables)`
Execute the HTTP method to the given URI template, preparing the request with the `RequestCallback`, and reading the response with a `ResponseExtractor`.
`<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 the `RequestCallback`, and reading the response with a `ResponseExtractor`.