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

    Modifier and Type
    Create a new REST client instance.
  • Method Details

    • createRestClient

      RestClient createRestClient(URI uri)
      Create a new REST client instance.
      uri - The URI to the REST service endpoint.
      A new REST client instance for the specified REST service endpoint.