public interface AsyncRestClient extends RestClientOperations<AsyncRestClient,AsyncRestClient.AsyncRequestDefinition>
Modifier and Type | Interface and Description |
---|---|
static interface |
AsyncRestClient.AsyncInvocation
Invocation operations
|
static interface |
AsyncRestClient.AsyncRequestDefinition
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 AsyncRestClient |
create()
Create a new
AsyncRestClient instance using default ClassLoader and default implementation, if
available. |
static AsyncRestClient |
create(ClassLoader classLoader)
Create a new
AsyncRestClient instance using given classLoder and default implementation, if
available. |
static AsyncRestClient |
create(String fullyQualifiedClassName)
Create a new
AsyncRestClient instance using default ClassLoader and the implementation whith
given fully qualified class name. |
static AsyncRestClient |
create(String fullyQualifiedClassName,
ClassLoader classLoader)
Create a new
AsyncRestClient instance using given classLoder and the implementation whith
given fully qualified class name. |
static AsyncRestClient |
forTarget(String baseUri)
Create a new
AsyncRestClient instance using default ClassLoader and default implementation,
setting given baseUri as default AsyncRestClient target, which will be used as base URI for
every request configured using RestClientOperations.request() , if not overridden using
RestClientOperations.RequestConfiguration.target(URI) . |
static AsyncRestClient |
forTarget(URI baseUri)
Create a new
AsyncRestClient instance using default ClassLoader and default implementation,
setting given baseUri as default AsyncRestClient 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, withDefaultHeader
static AsyncRestClient forTarget(String baseUri)
AsyncRestClient
instance using default ClassLoader
and default implementation,
setting given baseUri
as default AsyncRestClient
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 AsyncRestClient
AsyncRestClient
instancestatic AsyncRestClient forTarget(URI baseUri)
AsyncRestClient
instance using default ClassLoader
and default implementation,
setting given baseUri
as default AsyncRestClient
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 AsyncRestClient
AsyncRestClient
instancestatic AsyncRestClient create()
AsyncRestClient
instance using default ClassLoader
and default implementation, if
available. If more than one AsyncRestClient
implementation is found using given ClassLoader, the one
returned by the AsyncRestClientFactory
with the higher priority is returned.AsyncRestClient
instanceRestClientCreationException
- If a AsyncRestClient
implementation is not available or a instance
creation error occurredstatic AsyncRestClient create(ClassLoader classLoader)
AsyncRestClient
instance using given classLoder
and default implementation, if
available. If more than one AsyncRestClient
implementation is found using given ClassLoader, the one
returned by the AsyncRestClientFactory
with the higher priority is returned.classLoader
- The ClassLoader
to useAsyncRestClient
instanceRestClientCreationException
- If a AsyncRestClient
implementation is not available or a instance
creation error occurredstatic AsyncRestClient create(String fullyQualifiedClassName)
AsyncRestClient
instance using default ClassLoader
and the implementation whith
given fully qualified class name.fullyQualifiedClassName
- The AsyncRestClient
implementation fully qualified class name to obtainAsyncRestClient
instanceRestClientCreationException
- If the implementation which corresponds to given fully qualified class name
is not available or a instance creation error occurredstatic AsyncRestClient create(String fullyQualifiedClassName, ClassLoader classLoader)
AsyncRestClient
instance using given classLoder
and the implementation whith
given fully qualified class name.fullyQualifiedClassName
- The AsyncRestClient
implementation fully qualified class name to obtainclassLoader
- The ClassLoader
to useAsyncRestClient
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.