org.broadleafcommerce.vendor.paypal.service.payment
Class PayPalPaymentServiceImpl
java.lang.Object
org.broadleafcommerce.vendor.paypal.service.payment.PayPalPaymentServiceImpl
- All Implemented Interfaces:
- org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>, PayPalPaymentService
public class PayPalPaymentServiceImpl
- extends Object
- implements PayPalPaymentService, org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>
- Author:
- jfischer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serverUrl
protected String serverUrl
failureReportingThreshold
protected Integer failureReportingThreshold
failureCount
protected Integer failureCount
isUp
protected Boolean isUp
requestGenerator
protected PayPalRequestGenerator requestGenerator
responseGenerator
protected PayPalResponseGenerator responseGenerator
PayPalPaymentServiceImpl
public PayPalPaymentServiceImpl()
clearStatus
protected void clearStatus()
incrementFailure
protected void incrementFailure()
process
public PayPalResponse process(PayPalRequest paymentRequest)
throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
- Specified by:
process in interface org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>- Specified by:
process in interface PayPalPaymentService
- Throws:
org.broadleafcommerce.common.vendor.service.exception.PaymentException
communicateWithVendor
protected String communicateWithVendor(PayPalRequest paymentRequest)
throws IOException
- Throws:
IOException
getFailureReportingThreshold
public Integer getFailureReportingThreshold()
- Specified by:
getFailureReportingThreshold in interface PayPalPaymentService
getServerUrl
public String getServerUrl()
- Specified by:
getServerUrl in interface PayPalPaymentService
getServiceStatus
public org.broadleafcommerce.common.vendor.service.type.ServiceStatusType getServiceStatus()
- Specified by:
getServiceStatus in interface org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>- Specified by:
getServiceStatus in interface PayPalPaymentService
setFailureReportingThreshold
public void setFailureReportingThreshold(Integer failureReportingThreshold)
- Specified by:
setFailureReportingThreshold in interface PayPalPaymentService
setServerUrl
public void setServerUrl(String serverUrl)
- Specified by:
setServerUrl in interface PayPalPaymentService
getServiceName
public String getServiceName()
- Specified by:
getServiceName in interface org.broadleafcommerce.common.vendor.service.monitor.ServiceStatusDetectable<PayPalRequest>
getRequestGenerator
public PayPalRequestGenerator getRequestGenerator()
setRequestGenerator
public void setRequestGenerator(PayPalRequestGenerator requestGenerator)
getResponseGenerator
public PayPalResponseGenerator getResponseGenerator()
setResponseGenerator
public void setResponseGenerator(PayPalResponseGenerator responseGenerator)
Copyright © 2013. All Rights Reserved.