Package org.osgi.service.rest.client
Interface RestClientFactory
@ProviderType
public interface RestClientFactory
Factory to construct new REST client instances. Each instance is specific to
a REST service endpoint.
Implementations can choose to extend this interface to add additional creation methods, where additional arguments are needed for request signing, etc.
In OSGi environments, this factory is registered as a service.
-
Method Summary
-
Method Details
-
createRestClient
Create a new REST client instance.- Parameters:
uri
- The URI to the REST service endpoint.- Returns:
- A new REST client instance for the specified REST service endpoint.
-