Top Description Methods
org.osgi.service.rest.client

public Interface RestClientFactory

Annotations
@ProviderType
Imports
java.net.URI, org.osgi.annotation.versioning.ProviderType

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.

Author
$Id: 1aa3ae8437aa1ed55bbbd0233edbd085f962c3c5 $

Method Summary

Modifier and TypeMethod and Description
public RestClient

Returns:

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

Create a new REST client instance.

Method Detail

createRestClientback to summary
public RestClient createRestClient(URI uri)

Create a new REST client instance.

Parameters
uri:URI

The URI to the REST service endpoint.

Returns:RestClient

A new REST client instance for the specified REST service endpoint.