Class ProductIdExternalClient

java.lang.Object
com.broadleafcommerce.search.index.catalog.service.ProductIdExternalClient
All Implemented Interfaces:
com.broadleafcommerce.common.extension.intercommunication.ExternalClient, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware

public class ProductIdExternalClient extends Object implements com.broadleafcommerce.common.extension.intercommunication.ExternalClient, org.springframework.beans.factory.BeanFactoryAware
Handles external calls to catalog services to retrieve product ids for indexing
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProductIdExternalClient(com.broadleafcommerce.common.extension.intercommunication.ExternalClientProperties properties, CatalogIndexerServiceProperties indexerProperties, org.springframework.web.reactive.function.client.WebClient webClient, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser, com.broadleafcommerce.data.tracking.core.context.ContextInfoWebRequestResolver requestResolver)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.broadleafcommerce.data.tracking.core.context.ContextInfo
    extractContext(com.broadleafcommerce.common.extension.intercommunication.ExternalRequest request, org.springframework.web.util.UriComponents uriComponents)
     
    <T, R extends Exception>
    T
    get(com.broadleafcommerce.common.extension.intercommunication.ExternalRequest request)
     
    protected Class<?>
     
    protected Supplier<Object>
     
     
    protected Method
     
    protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node>
     
    protected com.broadleafcommerce.common.extension.intercommunication.ExternalClientProperties
     
    protected com.broadleafcommerce.data.tracking.core.context.ContextInfoWebRequestResolver
     
    protected org.springframework.web.reactive.function.client.WebClient
     
    protected boolean
     
    void
    setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
     

    Methods inherited from class java.lang.Object

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

    • ProductIdExternalClient

      public ProductIdExternalClient(com.broadleafcommerce.common.extension.intercommunication.ExternalClientProperties properties, CatalogIndexerServiceProperties indexerProperties, org.springframework.web.reactive.function.client.WebClient webClient, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser, com.broadleafcommerce.data.tracking.core.context.ContextInfoWebRequestResolver requestResolver)
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • get

      @Nullable public <T, R extends Exception> T get(com.broadleafcommerce.common.extension.intercommunication.ExternalRequest request) throws R
      Specified by:
      get in interface com.broadleafcommerce.common.extension.intercommunication.ExternalClient
      Throws:
      R extends Exception
    • extractContext

      protected com.broadleafcommerce.data.tracking.core.context.ContextInfo extractContext(com.broadleafcommerce.common.extension.intercommunication.ExternalRequest request, org.springframework.web.util.UriComponents uriComponents)
    • isCatalogServiceOnClasspath

      protected boolean isCatalogServiceOnClasspath()
    • getProperties

      protected com.broadleafcommerce.common.extension.intercommunication.ExternalClientProperties getProperties()
    • getIndexerProperties

      protected CatalogIndexerServiceProperties getIndexerProperties()
    • getWebClient

      protected org.springframework.web.reactive.function.client.WebClient getWebClient()
    • getParser

      protected com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> getParser()
    • getRequestResolver

      protected com.broadleafcommerce.data.tracking.core.context.ContextInfoWebRequestResolver getRequestResolver()
    • getEndpoint

      protected Class<?> getEndpoint()
    • getMethod

      protected Method getMethod()
    • getEndpointSupplier

      protected Supplier<Object> getEndpointSupplier()