Interface DynamicRestClient
-
- All Known Implementing Classes:
DynamicCsvImportClient,DynamicPoolActionClient,DynamicPublicationClient
public interface DynamicRestClientA REST client, which can connect to different servers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetBaseApiUrl()Returns URL of the API root for the current server to use.voiduseContextServer()Instructs this client to stop using a server explicitly specified previously and to start using the server selected in the DataHub UI.voiduseServer(DataHubServer server)Specifies DataHub server to use for uploading data.
-
-
-
Method Detail
-
useServer
void useServer(DataHubServer server)
Specifies DataHub server to use for uploading data. The server will be used until another server is not specified or this client is instructed to use the default context server.- Parameters:
server- a server, against which the REST calls should be executed.
-
useContextServer
void useContextServer()
Instructs this client to stop using a server explicitly specified previously and to start using the server selected in the DataHub UI.- See Also:
useServer(DataHubServer)
-
getBaseApiUrl
java.lang.String getBaseApiUrl()
Returns URL of the API root for the current server to use.- Returns:
- URL string for the REST API base. All request should be constructed relative to this base URL.
-
-