Interface DynamicSkuPricingFilter
- All Superinterfaces:
jakarta.servlet.Filter
- All Known Implementing Classes:
AbstractDynamicSkuPricingFilter,DefaultDynamicSkuPricingFilter
public interface DynamicSkuPricingFilter
extends jakarta.servlet.Filter
Responsible for setting up the
SkuPricingConsiderationContext. Rather than simply creating a filter that
implements this interface, consider instead subclassing the DefaultDynamicSkuPricingFilter and overriding the
appropriate methods.- Author:
- jfischer
-
Method Summary
Modifier and TypeMethodDescriptiongetDynamicSkuPricingService(jakarta.servlet.ServletRequest request) The result of this invocation should be set onSkuPricingConsiderationContext.setSkuPricingService(DynamicSkuPricingService).getPricingConsiderations(jakarta.servlet.ServletRequest request) The result of this invocation should be set onSkuPricingConsiderationContext.setSkuPricingConsiderationContext(HashMap)and ultimately passed toDynamicSkuPricingServiceto determine prices.Methods inherited from interface jakarta.servlet.Filter
destroy, doFilter, init
-
Method Details
-
getPricingConsiderations
The result of this invocation should be set onSkuPricingConsiderationContext.setSkuPricingConsiderationContext(HashMap)and ultimately passed toDynamicSkuPricingServiceto determine prices.- Parameters:
request-- Returns:
- a map of considerations to be used by the service in
getDynamicSkuPricingService(ServletRequest).
-
getDynamicSkuPricingService
The result of this invocation should be set onSkuPricingConsiderationContext.setSkuPricingService(DynamicSkuPricingService). This is the service that will be used in calculating dynamic prices for a Sku or product option value- Parameters:
request-- Returns:
-