Class AbstractExternalProvider
- java.lang.Object
-
- com.broadleafcommerce.catalogbrowse.service.provider.external.AbstractExternalProvider
-
- Direct Known Subclasses:
ExternalCatalogProvider,ExternalCatalogSearchProvider,ExternalOfferProvider,ExternalPricingProvider
public class AbstractExternalProvider extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractExternalProvider(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.http.HttpHeadersgetHeaders(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Builds the headers to be passed along with the request to the provider.protected com.fasterxml.jackson.databind.ObjectMappergetMapper()
-
-
-
Method Detail
-
getHeaders
protected org.springframework.http.HttpHeaders getHeaders(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Builds the headers to be passed along with the request to the provider.- Parameters:
contextInfo-ContextInfofrom the original request containing tenant and sandbox info- Returns:
- The headers to be passed along with the request to the provider.
-
getMapper
protected com.fasterxml.jackson.databind.ObjectMapper getMapper()
-
-