public class DefaultDataHubExtensionUploadService extends java.lang.Object implements DataHubExtensionUploadService
| Constructor and Description |
|---|
DefaultDataHubExtensionUploadService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected ExtensionClient |
client() |
protected ExtensionClient |
createClient(java.lang.String url)
Creates a client for communicating to the DataHub REST API
|
void |
setClientConfiguration(ClientConfiguration configuration)
Injects an optional Configuration for the underlaying rest client
|
void |
setDataHubUrl(java.lang.String url)
Specifies location of the DataHub to which the extensions will be deployed.
|
void |
uploadExtension(ExtensionSource extSrc)
Uploads a DataHub extension to the DataHub server.
|
public DefaultDataHubExtensionUploadService()
public void afterPropertiesSet()
throws java.lang.Exception
java.lang.Exceptionpublic void uploadExtension(ExtensionSource extSrc)
throws java.io.IOException
DataHubExtensionUploadServiceuploadExtension in interface DataHubExtensionUploadServiceextSrc - a source of the extension definition.java.io.IOException - when failed to read extension definition from the sourcepublic void setDataHubUrl(java.lang.String url)
url - a URL for the root of the DataHub REST API.public void setClientConfiguration(ClientConfiguration configuration)
configuration - protected ExtensionClient createClient(java.lang.String url)
url - a URL for the root of the DataHub REST APIprotected ExtensionClient client()
Copyright © 2018 SAP SE. All Rights Reserved.