Class ImpexDataImportClient

java.lang.Object
com.hybris.datahub.core.rest.client.ImpexDataImportClient
All Implemented Interfaces:
DataHubFacade

public class ImpexDataImportClient extends 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 Details

    • ImpexDataImportClient

      public ImpexDataImportClient()
  • Method Details

    • readData

      public InputStream readData(String url, Map<String,?> headers)
      Description copied from interface: DataHubFacade
      Requests data from the Data Hub.
      Specified by:
      readData in interface DataHubFacade
      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(String url, ItemImportResult itemImportResult)
      Description copied from interface: DataHubFacade
      Returns the ItemImportResult to the Data Hub
      Specified by:
      returnImportResult in interface DataHubFacade
      Parameters:
      url - the callback URL to use when returning the ItemImportResult
      itemImportResult - 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)