Class ImpexDataImportClient
- java.lang.Object
-
- com.hybris.datahub.core.rest.client.ImpexDataImportClient
-
- All Implemented Interfaces:
DataHubFacade
public class ImpexDataImportClient extends java.lang.Object implements DataHubFacade
A REST client to communicate to the Data Hub. Brings data from the Data Hub into a Core system and responds to Data Hub with the results of the data import
-
-
Constructor Summary
Constructors Constructor Description ImpexDataImportClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamreadData(java.lang.String url, java.util.Map<java.lang.String,?> headers)Requests data from the Data Hub.voidreturnImportResult(java.lang.String url, ItemImportResult itemImportResult)Returns theItemImportResultto the Data HubvoidsetClientConfig(com.hybris.datahub.client.ClientConfiguration clientConfig)voidsetRetryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate)
-
-
-
Method Detail
-
readData
public java.io.InputStream readData(java.lang.String url, java.util.Map<java.lang.String,?> headers)Description copied from interface:DataHubFacadeRequests data from the Data Hub.- Specified by:
readDatain interfaceDataHubFacade- Parameters:
url- identifies what data should be retrieved.headers- specifies parameters for the resource data retrieval.- Returns:
- an input stream to read the resource data.
-
returnImportResult
public void returnImportResult(java.lang.String url, ItemImportResult itemImportResult)Description copied from interface:DataHubFacadeReturns theItemImportResultto the Data Hub- Specified by:
returnImportResultin interfaceDataHubFacade- Parameters:
url- the callback URL to use when returning theItemImportResultitemImportResult- the resuts of the import
-
setClientConfig
public void setClientConfig(com.hybris.datahub.client.ClientConfiguration clientConfig)
-
setRetryTemplate
public void setRetryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate)
-
-