Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream readData​(java.lang.String url, java.util.Map<java.lang.String,​?> headers)
      Requests data from the Data Hub.
      void returnImportResult​(java.lang.String url, ItemImportResult itemImportResult)
      Returns the ItemImportResult to the Data Hub
      void setClientConfig​(com.hybris.datahub.client.ClientConfiguration clientConfig)  
      void setRetryTemplate​(org.springframework.retry.support.RetryTemplate retryTemplate)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImpexDataImportClient

        public ImpexDataImportClient()
    • Method Detail

      • readData

        public java.io.InputStream readData​(java.lang.String url,
                                            java.util.Map<java.lang.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​(java.lang.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)