org.broadleafcommerce.vendor.usps.service
Class USPSShippingCalculationServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.profile.vendor.service.AbstractVendorService
      extended by org.broadleafcommerce.vendor.usps.service.USPSShippingCalculationServiceImpl
All Implemented Interfaces:
ServiceStatusDetectable, USPSShippingCalculationService

public class USPSShippingCalculationServiceImpl
extends AbstractVendorService
implements ServiceStatusDetectable, USPSShippingCalculationService


Field Summary
protected  java.lang.Integer failureCount
           
protected  java.lang.Integer failureReportingThreshold
           
protected  java.lang.String httpProtocol
           
protected  java.lang.Boolean isUp
           
protected  java.lang.String rateRequestElement
           
protected  java.lang.String uspsCharSet
           
protected  java.lang.String uspsPassword
           
protected  USPSRequestBuilder uspsRequestBuilder
           
protected  USPSRequestValidator uspsRequestValidator
           
protected  USPSResponseBuilder uspsResponseBuilder
           
protected  java.lang.String uspsServerName
           
protected  java.lang.String uspsServiceAPI
           
protected  java.lang.String uspsShippingAPI
           
protected  java.lang.String uspsUserName
           
 
Constructor Summary
USPSShippingCalculationServiceImpl()
           
 
Method Summary
protected  java.io.InputStream callUSPSPricingCalculation(USPSShippingPriceRequest request)
           
protected  void clearStatus()
           
 java.lang.Integer getFailureReportingThreshold()
           
 java.lang.String getHttpProtocol()
           
 java.lang.String getRateRequestElement()
           
 java.lang.String getServiceName()
           
 ServiceStatusType getServiceStatus()
           
 java.lang.String getUspsCharSet()
           
 java.lang.String getUspsPassword()
           
 USPSRequestBuilder getUspsRequestBuilder()
           
 USPSRequestValidator getUspsRequestValidator()
           
 USPSResponseBuilder getUspsResponseBuilder()
           
 java.lang.String getUspsServerName()
           
 java.lang.String getUspsServiceAPI()
           
 java.lang.String getUspsShippingAPI()
           
 java.lang.String getUspsUserName()
           
protected  void incrementFailure()
           
 USPSShippingPriceResponse retrieveShippingRates(USPSShippingPriceRequest request)
           
 void setFailureReportingThreshold(java.lang.Integer failureReportingThreshold)
           
 void setHttpProtocol(java.lang.String httpProtocol)
           
 void setRateRequestElement(java.lang.String rateRequestElement)
           
 void setUspsCharSet(java.lang.String uspsCharSet)
           
 void setUspsPassword(java.lang.String uspsPassword)
           
 void setUspsRequestBuilder(USPSRequestBuilder uspsRequestBuilder)
           
 void setUspsRequestValidator(USPSRequestValidator uspsRequestValidator)
           
 void setUspsResponseBuilder(USPSResponseBuilder uspsResponseBuilder)
           
 void setUspsServerName(java.lang.String uspsServerName)
           
 void setUspsServiceAPI(java.lang.String uspsServiceAPI)
           
 void setUspsShippingAPI(java.lang.String uspsShippingAPI)
           
 void setUspsUserName(java.lang.String uspsUserName)
           
 
Methods inherited from class org.broadleafcommerce.profile.vendor.service.AbstractVendorService
postMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

USPSShippingCalculationServiceImpl

public USPSShippingCalculationServiceImpl()
Method Detail

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.