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.client package. |
Modifier and Type | Method and Description |
---|---|
protected abstract ClientHttpRequest |
AbstractClientHttpRequestFactoryWrapper.createRequest(URI uri,
HttpMethod httpMethod,
ClientHttpRequestFactory requestFactory)
Create a new
ClientHttpRequest for the specified URI and HTTP method
by using the passed-on request factory. |
protected ClientHttpRequest |
BufferingClientHttpRequestFactory.createRequest(URI uri,
HttpMethod httpMethod,
ClientHttpRequestFactory requestFactory) |
protected ClientHttpRequest |
InterceptingClientHttpRequestFactory.createRequest(URI uri,
HttpMethod httpMethod,
ClientHttpRequestFactory requestFactory) |
Constructor and Description |
---|
AbstractClientHttpRequestFactoryWrapper(ClientHttpRequestFactory requestFactory)
Create a
AbstractClientHttpRequestFactoryWrapper wrapping 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
InterceptingClientHttpRequestFactory with the given parameters. |
Modifier and Type | Method and Description |
---|---|
ClientHttpRequestFactory |
InterceptingHttpAccessor.getRequestFactory()
Overridden to expose an
InterceptingClientHttpRequestFactory
if necessary. |
ClientHttpRequestFactory |
HttpAccessor.getRequestFactory()
Return the request factory that this accessor uses for obtaining client request handles.
|
Modifier and Type | Method and Description |
---|---|
void |
InterceptingHttpAccessor.setRequestFactory(ClientHttpRequestFactory requestFactory)
Set the request factory that this accessor uses for obtaining client request handles.
|
void |
HttpAccessor.setRequestFactory(ClientHttpRequestFactory requestFactory)
Set the request factory that this accessor uses for obtaining client request handles.
|
Modifier and Type | Class and Description |
---|---|
class |
MockMvcClientHttpRequestFactory
A
ClientHttpRequestFactory for requests executed via MockMvc . |
Constructor and Description |
---|
AsyncRestTemplate(AsyncClientHttpRequestFactory asyncRequestFactory,
ClientHttpRequestFactory syncRequestFactory)
Deprecated.
Creates a new instance of the
AsyncRestTemplate using the given
asynchronous and synchronous request factories. |
RestTemplate(ClientHttpRequestFactory requestFactory)
Create a new instance of the
RestTemplate based on the given ClientHttpRequestFactory . |
Constructor and Description |
---|
RestGatewaySupport(ClientHttpRequestFactory requestFactory)
Construct a new instance of the
RestGatewaySupport , with the given ClientHttpRequestFactory . |