| Package | Description | 
|---|---|
| org.springframework.http.client | Contains an abstraction over client-side HTTP. | 
| org.springframework.http.client.support | This package provides generic HTTP support classes,
 to be used by higher-level classes like RestTemplate. | 
| org.springframework.test.web.client | Contains client-side REST testing support. | 
| org.springframework.web.client | Core package of the client-side web support. | 
| org.springframework.web.client.support | Classes supporting the  org.springframework.web.clientpackage. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract ClientHttpRequest | AbstractClientHttpRequestFactoryWrapper. createRequest(URI uri,
             HttpMethod httpMethod,
             ClientHttpRequestFactory requestFactory)Create a new  ClientHttpRequestfor the specified URI and HTTP method
 by using the passed-on request factory. | 
| protected ClientHttpRequest | InterceptingClientHttpRequestFactory. createRequest(URI uri,
             HttpMethod httpMethod,
             ClientHttpRequestFactory requestFactory) | 
| protected ClientHttpRequest | BufferingClientHttpRequestFactory. createRequest(URI uri,
             HttpMethod httpMethod,
             ClientHttpRequestFactory requestFactory) | 
| Constructor and Description | 
|---|
| AbstractClientHttpRequestFactoryWrapper(ClientHttpRequestFactory requestFactory)Create a  AbstractClientHttpRequestFactoryWrapperwrapping the given request factory. | 
| BufferingClientHttpRequestFactory(ClientHttpRequestFactory requestFactory)Create a buffering wrapper for the given  ClientHttpRequestFactory. | 
| InterceptingClientHttpRequestFactory(ClientHttpRequestFactory requestFactory,
                                    List<ClientHttpRequestInterceptor> interceptors)Create a new instance of the  InterceptingClientHttpRequestFactorywith the given parameters. | 
| Modifier and Type | Method and Description | 
|---|---|
| ClientHttpRequestFactory | HttpAccessor. getRequestFactory()Return the request factory that this accessor uses for obtaining client request handles. | 
| ClientHttpRequestFactory | InterceptingHttpAccessor. getRequestFactory()Overridden to expose an  InterceptingClientHttpRequestFactoryif necessary. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | HttpAccessor. setRequestFactory(ClientHttpRequestFactory requestFactory)Set the request factory that this accessor uses for obtaining client request handles. | 
| void | InterceptingHttpAccessor. setRequestFactory(ClientHttpRequestFactory requestFactory)Set the request factory that this accessor uses for obtaining client request handles. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MockMvcClientHttpRequestFactoryA  ClientHttpRequestFactoryfor requests executed viaMockMvc. | 
| Constructor and Description | 
|---|
| AsyncRestTemplate(AsyncClientHttpRequestFactory asyncRequestFactory,
                 ClientHttpRequestFactory syncRequestFactory)Deprecated.  Creates a new instance of the  AsyncRestTemplateusing the given
 asynchronous and synchronous request factories. | 
| RestTemplate(ClientHttpRequestFactory requestFactory)Create a new instance of the  RestTemplatebased on the givenClientHttpRequestFactory. | 
| Constructor and Description | 
|---|
| RestGatewaySupport(ClientHttpRequestFactory requestFactory)Construct a new instance of the  RestGatewaySupport, with the givenClientHttpRequestFactory. |