org.broadleafcommerce.vendor.cybersource.service
Class AbstractCyberSourcePaymentService

java.lang.Object
  extended by org.broadleafcommerce.vendor.cybersource.service.AbstractCyberSourcePaymentService
All Implemented Interfaces:
ServiceStatusDetectable
Direct Known Subclasses:
CyberSourceCreditCardPaymentServiceImpl

public abstract class AbstractCyberSourcePaymentService
extends java.lang.Object
implements ServiceStatusDetectable


Field Summary
protected  java.lang.Integer failureCount
           
protected  java.lang.Integer failureReportingThreshold
           
protected  java.lang.Boolean isUp
           
 
Constructor Summary
AbstractCyberSourcePaymentService()
           
 
Method Summary
protected  RequestMessage buildRequestMessage(CyberSourcePaymentRequest paymentRequest)
           
protected  void clearStatus()
           
 java.lang.Integer getFailureReportingThreshold()
           
 IdGenerationService getIdGenerationService()
           
 java.lang.String getLibVersion()
           
 java.lang.String getMerchantId()
           
 java.lang.String getServerUrl()
           
 java.lang.String getServiceName()
           
 ServiceStatusType getServiceStatus()
           
protected  void incrementFailure()
           
protected  ReplyMessage sendRequest(RequestMessage request)
           
 void setFailureReportingThreshold(java.lang.Integer failureReportingThreshold)
           
 void setIdGenerationService(IdGenerationService idGenerationService)
           
 void setLibVersion(java.lang.String libVersion)
           
 void setMerchantId(java.lang.String merchantId)
           
 void setServerUrl(java.lang.String serverUrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

failureReportingThreshold

protected java.lang.Integer failureReportingThreshold

failureCount

protected java.lang.Integer failureCount

isUp

protected java.lang.Boolean isUp
Constructor Detail

AbstractCyberSourcePaymentService

public AbstractCyberSourcePaymentService()
Method Detail

clearStatus

protected void clearStatus()

incrementFailure

protected void incrementFailure()

getFailureReportingThreshold

public java.lang.Integer getFailureReportingThreshold()

getMerchantId

public java.lang.String getMerchantId()

getServerUrl

public java.lang.String getServerUrl()

getLibVersion

public java.lang.String getLibVersion()

getServiceName

public java.lang.String getServiceName()
Specified by:
getServiceName in interface ServiceStatusDetectable

getServiceStatus

public ServiceStatusType getServiceStatus()
Specified by:
getServiceStatus in interface ServiceStatusDetectable

setFailureReportingThreshold

public void setFailureReportingThreshold(java.lang.Integer failureReportingThreshold)

setMerchantId

public void setMerchantId(java.lang.String merchantId)

setServerUrl

public void setServerUrl(java.lang.String serverUrl)

setLibVersion

public void setLibVersion(java.lang.String libVersion)

getIdGenerationService

public IdGenerationService getIdGenerationService()

setIdGenerationService

public void setIdGenerationService(IdGenerationService idGenerationService)

sendRequest

protected ReplyMessage sendRequest(RequestMessage request)
                            throws org.apache.axis.AxisFault,
                                   java.net.MalformedURLException,
                                   java.rmi.RemoteException,
                                   javax.xml.rpc.ServiceException
Throws:
org.apache.axis.AxisFault
java.net.MalformedURLException
java.rmi.RemoteException
javax.xml.rpc.ServiceException

buildRequestMessage

protected RequestMessage buildRequestMessage(CyberSourcePaymentRequest paymentRequest)


Copyright © 2010. All Rights Reserved.