Package com.skava.shipping.service.impl
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 Summary
ConstructorsConstructorDescriptionShippingCalculationServiceImpl default constructor -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
getValidator
(ShippingRequest request) Method getValidator this method used to validate the request fieldsmethodFallback
(ShippingRequest request) Method fallback.process
(ShippingRequest request) process This method is used to calculate Shipping based on given Shipping.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.core.EcommService
getValidateException, getValidator
-
Constructor Details
-
ShippingCalculationServiceImpl
public ShippingCalculationServiceImpl()ShippingCalculationServiceImpl default constructor
-
-
Method Details
-
getValidator
Method getValidator this method used to validate the request fields- Specified by:
getValidator
in interfacecom.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 interfacecom.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
Method fallback.- Parameters:
request
- the request- Returns:
- the shipping response
-