Class PaymentProviderRequestSupportedStrategy
- java.lang.Object
-
- de.hybris.platform.ycommercewebservices.request.support.impl.PaymentProviderRequestSupportedStrategy
-
- All Implemented Interfaces:
RequestSupportedStrategy
public class PaymentProviderRequestSupportedStrategy extends java.lang.Object implements RequestSupportedStrategy
Implementation forRequestSupportedStrategywhich checks if request is supported based on payment provider name
-
-
Constructor Summary
Constructors Constructor Description PaymentProviderRequestSupportedStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIfRequestSupported(java.lang.String requestId)Method check if request is supported and throws exception if notCommercePaymentProviderStrategygetPaymentProviderStrategy()java.util.Map<java.lang.String,java.util.List<java.lang.String>>getUnsupportedRequestMap()booleanisRequestSupported(java.lang.String requestId)Method check if request is supportedvoidsetPaymentProviderStrategy(CommercePaymentProviderStrategy paymentProviderStrategy)voidsetUnsupportedRequestMap(java.util.Map<java.lang.String,java.util.List<java.lang.String>> unsupportedRequestMap)
-
-
-
Method Detail
-
isRequestSupported
public boolean isRequestSupported(java.lang.String requestId)
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
public void checkIfRequestSupported(java.lang.String requestId) throws UnsupportedRequestExceptionDescription 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
public CommercePaymentProviderStrategy getPaymentProviderStrategy()
-
setPaymentProviderStrategy
public void setPaymentProviderStrategy(CommercePaymentProviderStrategy paymentProviderStrategy)
-
getUnsupportedRequestMap
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getUnsupportedRequestMap()
-
setUnsupportedRequestMap
public void setUnsupportedRequestMap(java.util.Map<java.lang.String,java.util.List<java.lang.String>> unsupportedRequestMap)
-
-