public class RepositoryClientProvider
extends java.lang.Object
RepositoryClient
that can be used to access services offered by a
repository server application. It requires the repository's service URL for REST communications,
which can be configured by means of reading properties from well-known locations (see
RepositoryUrlLoader
), or directly when instantiating the provider.Modifier and Type | Method and Description |
---|---|
static RepositoryClient |
create()
Creates a client to a server instance.
|
static RepositoryClient |
create(java.lang.String repoRestUrl)
Creates a client to a server instance found on the provided URL.
|
static RepositoryClientProvider |
createProvider()
Creates a provider for clients to a server instance.
|
static RepositoryClientProvider |
createProvider(java.lang.String repoRestUrl)
Creates a provider for clients to a server instance.
|
RepositoryClient |
getRepositoryClient()
Gets the repository client.
|
public static RepositoryClientProvider createProvider()
RepositoryClient
public static RepositoryClientProvider createProvider(java.lang.String repoRestUrl)
repoRestUrl
- the repository server URL (where the server expects REST connections)RepositoryClient
public static RepositoryClient create()
RepositoryClient
public static RepositoryClient create(java.lang.String repoRestUrl)
repoRestUrl
- the repository server URL (where the server expects REST connections)RepositoryClient
public RepositoryClient getRepositoryClient()
RepositoryClient
to communicate with a repository server instance