| Package | Description |
|---|---|
| com.holonplatform.http.rest | |
| com.holonplatform.spring |
| Modifier and Type | Method and Description |
|---|---|
RestClient |
RestClient.clearDefaultHeaders()
Removes all default headers
|
static RestClient |
RestClient.create()
Create a new
RestClient instance using default ClassLoader and default implementation, if
available. |
RestClient |
RestClientFactory.create(ClassLoader classLoader)
Create a new
RestClient instance. |
static RestClient |
RestClient.create(ClassLoader classLoader)
Create a new
RestClient instance using given classLoder and default implementation, if
available. |
static RestClient |
RestClient.create(String fullyQualifiedClassName)
Create a new
RestClient instance using default ClassLoader and the implementation whith given
fully qualified class name. |
static RestClient |
RestClient.create(String fullyQualifiedClassName,
ClassLoader classLoader)
Create a new
RestClient instance using given classLoder and the implementation whith given
fully qualified class name. |
RestClient |
RestClientFactoryRegistry.createRestClient(String fullyQualifiedClassName,
ClassLoader classLoader)
Get a
RestClient instance for given fullyQualifiedClassName and ClassLoader using a
suitable RestClientFactory. |
RestClient |
RestClient.defaultTarget(URI baseUri)
Set the default target request base URI, which will be used as target URI for every request configured using
request(), if not overridden using RestClient.RequestDefinition.target(URI). |
static RestClient |
RestClient.forTarget(String baseUri)
Create a new
RestClient instance using default ClassLoader and default implementation, setting
given baseUri as default RestClient target, which will be used as base URI for every request
configured using request(), if not overridden using RestClient.RequestDefinition.target(URI). |
static RestClient |
RestClient.forTarget(URI baseUri)
Create a new
RestClient instance using default ClassLoader and default implementation, setting
given baseUri as default RestClient target, which will be used as base URI for every request
configured using request(), if not overridden using RestClient.RequestDefinition.target(URI). |
RestClient |
RestClient.removeDefaultHeader(String name)
Removes the default header with given
name, if present |
RestClient |
RestClient.withDefaultHeader(String name,
String value)
Add a default request header which will be automatically added to every invocation request message, if an header
with the same name is not already present.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SpringRestClient
A
RestClient using Spring RestTemplate. |
| Modifier and Type | Method and Description |
|---|---|
static RestClient |
SpringRestClient.create(org.springframework.web.client.RestTemplate restTemplate)
Create a
RestClient using given restTemplate. |
Copyright © 2017 The Holon Platform. All rights reserved.