Class ShippingCalculationServiceImpl

java.lang.Object
com.skava.shipping.service.impl.ShippingCalculationServiceImpl
All Implemented Interfaces:
com.skava.core.EcommService<ShippingRequest,ShippingResponse>, ShippingCalculationService

@Service public class ShippingCalculationServiceImpl extends Object implements ShippingCalculationService
The Class ShippingCalculationServiceImpl. This is the default Implementation
  • Constructor Details

    • ShippingCalculationServiceImpl

      public ShippingCalculationServiceImpl()
      ShippingCalculationServiceImpl default constructor
  • Method Details

    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator(ShippingRequest request)
      Method getValidator this method used to validate the request fields
      Specified by:
      getValidator in interface com.skava.core.EcommService<ShippingRequest,ShippingResponse>
      See Also:
      • EcommService.getValidator()
    • process

      @SendEvent(eventType="shippingservice/shipping/calculation", identifier="response_shipping.shippingId") public ShippingResponse process(ShippingRequest request)
      process This method is used to calculate Shipping based on given Shipping. This mehod mainly process the cache updates
      Specified by:
      process in interface com.skava.core.EcommService<ShippingRequest,ShippingResponse>
      Parameters:
      request - It contains the attributes required for the calculation of Shipping.
      Returns:
      It returns the ShippingResponse. This has strategy implementation to be revised
    • methodFallback

      public ShippingResponse methodFallback(ShippingRequest request)
      Method fallback.
      Parameters:
      request - the request
      Returns:
      the shipping response