Class AbstractExternalProvider
java.lang.Object
com.broadleafcommerce.orchestration.service.provider.external.AbstractExternalProvider
- Direct Known Subclasses:
ExternalWorkflowProvider
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractExternalProvider
(com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.HttpHeaders
getHeaders
(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.ObjectMapper
-
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
-ContextInfo
from 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()
-