Class PaymentProviderRequestSupportedStrategy
java.lang.Object
de.hybris.platform.ycommercewebservices.request.support.impl.PaymentProviderRequestSupportedStrategy
- All Implemented Interfaces:
RequestSupportedStrategy
public class PaymentProviderRequestSupportedStrategy
extends Object
implements RequestSupportedStrategy
Implementation for
RequestSupportedStrategy which checks if request is supported based on payment provider
name-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckIfRequestSupported(String requestId) Method check if request is supported and throws exception if notbooleanisRequestSupported(String requestId) Method check if request is supportedvoidsetPaymentProviderStrategy(CommercePaymentProviderStrategy paymentProviderStrategy) voidsetUnsupportedRequestMap(Map<String, List<String>> unsupportedRequestMap)
-
Constructor Details
-
PaymentProviderRequestSupportedStrategy
public PaymentProviderRequestSupportedStrategy()
-
-
Method Details
-
isRequestSupported
Description copied from interface:RequestSupportedStrategyMethod check if request is supported- Specified by:
isRequestSupportedin interfaceRequestSupportedStrategy- Parameters:
requestId- request identifier (e.g. request path)- Returns:
- true if request is supported
false if request is not supported
-
checkIfRequestSupported
Description copied from interface:RequestSupportedStrategyMethod check if request is supported and throws exception if not- Specified by:
checkIfRequestSupportedin interfaceRequestSupportedStrategy- Parameters:
requestId- request identifier (e.g. request path)- Throws:
UnsupportedRequestException- when request is not supported
-
getPaymentProviderStrategy
-
setPaymentProviderStrategy
-
getUnsupportedRequestMap
-
setUnsupportedRequestMap
-