org.broadleafcommerce.vendor.usps.service
Class USPSShippingCalculationServiceImpl
java.lang.Object
org.broadleafcommerce.profile.vendor.service.AbstractVendorService
org.broadleafcommerce.vendor.usps.service.USPSShippingCalculationServiceImpl
- All Implemented Interfaces:
- ServiceStatusDetectable, USPSShippingCalculationService
public class USPSShippingCalculationServiceImpl
- extends AbstractVendorService
- implements ServiceStatusDetectable, USPSShippingCalculationService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uspsCharSet
protected java.lang.String uspsCharSet
uspsPassword
protected java.lang.String uspsPassword
uspsServerName
protected java.lang.String uspsServerName
uspsServiceAPI
protected java.lang.String uspsServiceAPI
uspsUserName
protected java.lang.String uspsUserName
httpProtocol
protected java.lang.String httpProtocol
failureReportingThreshold
protected java.lang.Integer failureReportingThreshold
failureCount
protected java.lang.Integer failureCount
isUp
protected java.lang.Boolean isUp
uspsShippingAPI
protected java.lang.String uspsShippingAPI
rateRequestElement
protected java.lang.String rateRequestElement
uspsRequestValidator
protected USPSRequestValidator uspsRequestValidator
uspsRequestBuilder
protected USPSRequestBuilder uspsRequestBuilder
uspsResponseBuilder
protected USPSResponseBuilder uspsResponseBuilder
USPSShippingCalculationServiceImpl
public USPSShippingCalculationServiceImpl()
retrieveShippingRates
public USPSShippingPriceResponse retrieveShippingRates(USPSShippingPriceRequest request)
throws ShippingPriceException
- Specified by:
retrieveShippingRates in interface USPSShippingCalculationService
- Throws:
ShippingPriceException
clearStatus
protected void clearStatus()
incrementFailure
protected void incrementFailure()
callUSPSPricingCalculation
protected java.io.InputStream callUSPSPricingCalculation(USPSShippingPriceRequest request)
throws java.io.IOException
- Throws:
java.io.IOException
getServiceStatus
public ServiceStatusType getServiceStatus()
- Specified by:
getServiceStatus in interface ServiceStatusDetectable- Specified by:
getServiceStatus in interface USPSShippingCalculationService
getUspsCharSet
public java.lang.String getUspsCharSet()
- Specified by:
getUspsCharSet in interface USPSShippingCalculationService
setUspsCharSet
public void setUspsCharSet(java.lang.String uspsCharSet)
- Specified by:
setUspsCharSet in interface USPSShippingCalculationService
getUspsPassword
public java.lang.String getUspsPassword()
- Specified by:
getUspsPassword in interface USPSShippingCalculationService
setUspsPassword
public void setUspsPassword(java.lang.String uspsPassword)
- Specified by:
setUspsPassword in interface USPSShippingCalculationService
getUspsServerName
public java.lang.String getUspsServerName()
- Specified by:
getUspsServerName in interface USPSShippingCalculationService
setUspsServerName
public void setUspsServerName(java.lang.String uspsServerName)
- Specified by:
setUspsServerName in interface USPSShippingCalculationService
getUspsServiceAPI
public java.lang.String getUspsServiceAPI()
- Specified by:
getUspsServiceAPI in interface USPSShippingCalculationService
setUspsServiceAPI
public void setUspsServiceAPI(java.lang.String uspsServiceAPI)
- Specified by:
setUspsServiceAPI in interface USPSShippingCalculationService
getUspsUserName
public java.lang.String getUspsUserName()
- Specified by:
getUspsUserName in interface USPSShippingCalculationService
setUspsUserName
public void setUspsUserName(java.lang.String uspsUserName)
- Specified by:
setUspsUserName in interface USPSShippingCalculationService
getHttpProtocol
public java.lang.String getHttpProtocol()
- Specified by:
getHttpProtocol in interface USPSShippingCalculationService
setHttpProtocol
public void setHttpProtocol(java.lang.String httpProtocol)
- Specified by:
setHttpProtocol in interface USPSShippingCalculationService
getFailureReportingThreshold
public java.lang.Integer getFailureReportingThreshold()
- Specified by:
getFailureReportingThreshold in interface USPSShippingCalculationService
setFailureReportingThreshold
public void setFailureReportingThreshold(java.lang.Integer failureReportingThreshold)
- Specified by:
setFailureReportingThreshold in interface USPSShippingCalculationService
getServiceName
public java.lang.String getServiceName()
- Specified by:
getServiceName in interface ServiceStatusDetectable- Specified by:
getServiceName in interface USPSShippingCalculationService
getUspsShippingAPI
public java.lang.String getUspsShippingAPI()
- Specified by:
getUspsShippingAPI in interface USPSShippingCalculationService
setUspsShippingAPI
public void setUspsShippingAPI(java.lang.String uspsShippingAPI)
- Specified by:
setUspsShippingAPI in interface USPSShippingCalculationService
getRateRequestElement
public java.lang.String getRateRequestElement()
- Specified by:
getRateRequestElement in interface USPSShippingCalculationService
setRateRequestElement
public void setRateRequestElement(java.lang.String rateRequestElement)
- Specified by:
setRateRequestElement in interface USPSShippingCalculationService
getUspsRequestValidator
public USPSRequestValidator getUspsRequestValidator()
- Specified by:
getUspsRequestValidator in interface USPSShippingCalculationService
setUspsRequestValidator
public void setUspsRequestValidator(USPSRequestValidator uspsRequestValidator)
- Specified by:
setUspsRequestValidator in interface USPSShippingCalculationService
getUspsRequestBuilder
public USPSRequestBuilder getUspsRequestBuilder()
- Specified by:
getUspsRequestBuilder in interface USPSShippingCalculationService
setUspsRequestBuilder
public void setUspsRequestBuilder(USPSRequestBuilder uspsRequestBuilder)
- Specified by:
setUspsRequestBuilder in interface USPSShippingCalculationService
getUspsResponseBuilder
public USPSResponseBuilder getUspsResponseBuilder()
setUspsResponseBuilder
public void setUspsResponseBuilder(USPSResponseBuilder uspsResponseBuilder)
Copyright © 2012. All Rights Reserved.