org.broadleafcommerce.vendor.paypal.service.payment
Class PayPalPaymentServiceImpl

java.lang.Object
  extended by 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

Field Summary
protected  Integer failureCount
           
protected  Integer failureReportingThreshold
           
protected  Boolean isUp
           
protected  PayPalRequestGenerator requestGenerator
           
protected  PayPalResponseGenerator responseGenerator
           
protected  String serverUrl
           
 
Constructor Summary
PayPalPaymentServiceImpl()
           
 
Method Summary
protected  void clearStatus()
           
protected  String communicateWithVendor(PayPalRequest paymentRequest)
           
 Integer getFailureReportingThreshold()
           
 PayPalRequestGenerator getRequestGenerator()
           
 PayPalResponseGenerator getResponseGenerator()
           
 String getServerUrl()
           
 String getServiceName()
           
 org.broadleafcommerce.common.vendor.service.type.ServiceStatusType getServiceStatus()
           
protected  void incrementFailure()
           
 PayPalResponse process(PayPalRequest paymentRequest)
           
 void setFailureReportingThreshold(Integer failureReportingThreshold)
           
 void setRequestGenerator(PayPalRequestGenerator requestGenerator)
           
 void setResponseGenerator(PayPalResponseGenerator responseGenerator)
           
 void setServerUrl(String serverUrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverUrl

protected String serverUrl

failureReportingThreshold

protected Integer failureReportingThreshold

failureCount

protected Integer failureCount

isUp

protected Boolean isUp

requestGenerator

protected PayPalRequestGenerator requestGenerator

responseGenerator

protected PayPalResponseGenerator responseGenerator
Constructor Detail

PayPalPaymentServiceImpl

public PayPalPaymentServiceImpl()
Method Detail

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.