public interface RestClient extends RestClientOperations<RestClient,RestClient.RequestDefinition>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RestClient.Invocation
Invocation operations
|
static interface |
RestClient.RequestDefinition
Request message definition and response invocation.
|
RestClientOperations.InvocationOperations<RE,RP,RS,RL,RU>, RestClientOperations.RequestConfiguration<R extends RestClientOperations.RequestConfiguration<R>>| Modifier and Type | Method and Description |
|---|---|
static RestClient |
create()
Create a new
RestClient instance using default ClassLoader and default implementation, if
available. |
static RestClient |
create(ClassLoader classLoader)
Create a new
RestClient instance using given classLoder and default implementation, if
available. |
static RestClient |
create(String fullyQualifiedClassName)
Create a new
RestClient instance using default ClassLoader and the implementation whith given
fully qualified class name. |
static RestClient |
create(String fullyQualifiedClassName,
ClassLoader classLoader)
Create a new
RestClient instance using given classLoder and the implementation whith given
fully qualified class name. |
static 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 RestClientOperations.request(), if not overridden using RestClientOperations.RequestConfiguration.target(URI). |
static 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 RestClientOperations.request(), if not overridden using RestClientOperations.RequestConfiguration.target(URI). |
clearDefaultHeaders, defaultTarget, getDefaultTarget, removeDefaultHeader, request, withDefaultHeaderstatic RestClient forTarget(String baseUri)
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 RestClientOperations.request(), if not overridden using RestClientOperations.RequestConfiguration.target(URI).baseUri - The base target URI of the returned RestClientRestClient instancestatic RestClient forTarget(URI baseUri)
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 RestClientOperations.request(), if not overridden using RestClientOperations.RequestConfiguration.target(URI).baseUri - The base target URI of the returned RestClientRestClient instancestatic RestClient create()
RestClient instance using default ClassLoader and default implementation, if
available. If more than one RestClient implementation is found using given ClassLoader, the one returned
by the RestClientFactory with the higher priority is returned.RestClient instanceRestClientCreationException - If a RestClient implementation is not available or a instance
creation error occurredstatic RestClient create(ClassLoader classLoader)
RestClient instance using given classLoder and default implementation, if
available. If more than one RestClient implementation is found using given ClassLoader, the one returned
by the RestClientFactory with the higher priority is returned.classLoader - The ClassLoader to useRestClient instanceRestClientCreationException - If a RestClient implementation is not available or a instance
creation error occurredstatic RestClient create(String fullyQualifiedClassName)
RestClient instance using default ClassLoader and the implementation whith given
fully qualified class name.fullyQualifiedClassName - The RestClient implementation fully qualified class name to obtainRestClient instanceRestClientCreationException - If the implementation which corresponds to given fully qualified class name
is not available or a instance creation error occurredstatic RestClient create(String fullyQualifiedClassName, ClassLoader classLoader)
RestClient instance using given classLoder and the implementation whith given
fully qualified class name.fullyQualifiedClassName - The RestClient implementation fully qualified class name to obtainclassLoader - The ClassLoader to useRestClient instanceRestClientCreationException - If the implementation which corresponds to given fully qualified class name
is not available or a instance creation error occurredCopyright © 2019 The Holon Platform. All rights reserved.