Interface RestClientFactory
- All Known Implementing Classes:
EnvironmentPropertyRestClientFactory
public interface RestClientFactory
A factory that builds dynamic proxy clients (using JAX-RS RESTful client interfaces) for services, abstracting away the method
through which client endpoints, credentials, etc. are acquired
-
Method Summary
Modifier and TypeMethodDescription<T> TCreate or retrieve a client for the service interface provided
This method only works where a single service for this interface has been configured.<T> TCreate or retrieve a client for the service interface, with the underlying REST service identified byname
-
Method Details
-
getClient
Create or retrieve a client for the service interface provided
This method only works where a single service for this interface has been configured. For more complex situations, usegetClient(iface, name)- Parameters:
iface-- Returns:
-
getClient
Create or retrieve a client for the service interface, with the underlying REST service identified byname- Parameters:
iface-name- the service name- Returns:
-