Interface DynamicRestClient

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getBaseApiUrl()
      Returns URL of the API root for the current server to use.
      void useContextServer()
      Instructs this client to stop using a server explicitly specified previously and to start using the server selected in the DataHub UI.
      void useServer​(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.