HttpClient, Apache
HttpComponents, and others.
Use static factory methods create(), create(String),
or RestClient#builder() to prepare an instance. To use the same
configuration as a RestTemplate, use create(RestTemplate) or
builder(RestTemplate).
For examples with a response body see:
For examples with a request body see:
| Modifier and Type | Class and Description |
|---|---|
| public static interface | RestClient.
A mutable builder for creating a |
| public static interface | RestClient.
Contract for specifying request headers and body leading up to the exchange. |
| public static interface | RestClient.
Contract for specifying request headers, body and URI for a request. |
| public static interface | RestClient.
a self reference to the spec type S extends RestClient.Contract for specifying request headers leading up to the exchange. |
| public static interface | RestClient.
a self reference to the spec type S extends RestClient.Contract for specifying request headers and URI for a request. |
| public static interface | RestClient.
Contract for specifying response operations following the exchange. |
| public static interface | RestClient.
a self reference to the spec type S extends RestClient.Contract for specifying the URI for a request. |
| Modifier and Type | Method and Description |
|---|---|
| public static RestClient. | |
| public static RestClient. | Returns: aRestClient builder initialized with restTemplate's
configurationthe rest template to base the returned builder's
configuration on restTemplate)Obtain a |
| public static RestClient | |
| public static RestClient | |
| public static RestClient | Returns: aRestClient initialized with the restTemplate's
configurationthe rest template to base the returned client's
configuration on restTemplate)Create a new |
| public RestClient. | |
| public RestClient. | |
| public RestClient. | |
| public RestClient. | Returns: a spec for specifying the target URLStart building a request for the given |
| public RestClient. | mutate()
Return a builder to create a new |
| public RestClient. | |
| public RestClient. | |
| public RestClient. | |
| public RestClient. |