Class AbstractExternalProvider
java.lang.Object
com.broadleafcommerce.catalogbrowse.service.provider.external.AbstractExternalProvider
- Direct Known Subclasses:
ExternalCatalogProvider,ExternalCatalogSearchProvider,ExternalContentProvider,ExternalInventoryProvider,ExternalOfferProvider,ExternalPricingProvider,ExternalRecommendationProvider
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractExternalProvider(com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtilsprotected ExternalProviderPropertiesprotected 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 org.springframework.http.HttpHeadersgetHeaders(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, ContentContext contentContext) protected com.fasterxml.jackson.databind.ObjectMapperprotected booleanvoidsetAuthenticationUtils(com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils) voidsetExternalProviderProperties(ExternalProviderProperties externalProviderProperties)
-
Constructor Details
-
AbstractExternalProvider
public AbstractExternalProvider(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
Method Details
-
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.
-
getHeaders
protected org.springframework.http.HttpHeaders getHeaders(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo, @Nullable ContentContext contentContext) -
isCallerWhitelistedService
protected boolean isCallerWhitelistedService()- Since:
- 1.8.6
- See Also:
-
getMapper
protected com.fasterxml.jackson.databind.ObjectMapper getMapper() -
setExternalProviderProperties
@Autowired public void setExternalProviderProperties(ExternalProviderProperties externalProviderProperties) -
getExternalProviderProperties
-
setAuthenticationUtils
@Autowired public void setAuthenticationUtils(com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils) -
getAuthenticationUtils
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils()
-