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

java.lang.Object
  extended by org.broadleafcommerce.vendor.paypal.service.payment.PayPalRequestGeneratorImpl
All Implemented Interfaces:
PayPalRequestGenerator

public class PayPalRequestGeneratorImpl
extends java.lang.Object
implements PayPalRequestGenerator

Author:
Jeff Fischer

Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> additionalConfig
           
protected  java.lang.String cancelUrl
           
protected  java.lang.String libVersion
           
protected  java.lang.String password
           
protected  java.lang.String returnUrl
           
protected  java.lang.String signature
           
protected  java.lang.String user
           
 
Constructor Summary
PayPalRequestGeneratorImpl()
           
 
Method Summary
 java.util.List<org.apache.commons.httpclient.NameValuePair> buildRequest(PayPalRequest request)
           
 java.util.Map<java.lang.String,java.lang.String> getAdditionalConfig()
           
 java.lang.String getCancelUrl()
           
 java.lang.String getLibVersion()
           
 java.lang.String getPassword()
           
 java.lang.String getReturnUrl()
           
 java.lang.String getSignature()
           
 java.lang.String getUser()
           
protected  java.lang.String replaceNumericBoundProperty(java.lang.String property, java.lang.Integer[] number, java.lang.String[] positions)
           
 void setAdditionalConfig(java.util.Map<java.lang.String,java.lang.String> additionalConfig)
           
protected  void setBaseNvps(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps)
           
 void setCancelUrl(java.lang.String cancelUrl)
           
protected  void setCostNvps(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps, PayPalPaymentRequest paymentRequest)
           
 void setLibVersion(java.lang.String libVersion)
           
protected  void setNvpsForCapture(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps, PayPalPaymentRequest paymentRequest)
           
protected  void setNvpsForCheckoutOrAuth(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps, PayPalPaymentRequest paymentRequest, java.lang.String payPalAction)
           
protected  void setNvpsForDetails(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps, PayPalDetailsRequest paymentRequest)
           
protected  void setNvpsForProcess(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps, PayPalPaymentRequest paymentRequest)
           
protected  void setNvpsForRefund(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps, PayPalPaymentRequest paymentRequest)
           
protected  void setNvpsForVoid(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps, PayPalPaymentRequest paymentRequest)
           
 void setPassword(java.lang.String password)
           
 void setReturnUrl(java.lang.String returnUrl)
           
 void setSignature(java.lang.String signature)
           
 void setUser(java.lang.String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user

protected java.lang.String user

password

protected java.lang.String password

signature

protected java.lang.String signature

libVersion

protected java.lang.String libVersion

returnUrl

protected java.lang.String returnUrl

cancelUrl

protected java.lang.String cancelUrl

additionalConfig

protected java.util.Map<java.lang.String,java.lang.String> additionalConfig
Constructor Detail

PayPalRequestGeneratorImpl

public PayPalRequestGeneratorImpl()
Method Detail

buildRequest

public java.util.List<org.apache.commons.httpclient.NameValuePair> buildRequest(PayPalRequest request)
Specified by:
buildRequest in interface PayPalRequestGenerator

setNvpsForDetails

protected void setNvpsForDetails(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps,
                                 PayPalDetailsRequest paymentRequest)

setNvpsForVoid

protected void setNvpsForVoid(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps,
                              PayPalPaymentRequest paymentRequest)

setNvpsForCapture

protected void setNvpsForCapture(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps,
                                 PayPalPaymentRequest paymentRequest)

setNvpsForRefund

protected void setNvpsForRefund(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps,
                                PayPalPaymentRequest paymentRequest)

setNvpsForProcess

protected void setNvpsForProcess(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps,
                                 PayPalPaymentRequest paymentRequest)

setBaseNvps

protected void setBaseNvps(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps)

setNvpsForCheckoutOrAuth

protected void setNvpsForCheckoutOrAuth(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps,
                                        PayPalPaymentRequest paymentRequest,
                                        java.lang.String payPalAction)

setCostNvps

protected void setCostNvps(java.util.List<org.apache.commons.httpclient.NameValuePair> nvps,
                           PayPalPaymentRequest paymentRequest)

replaceNumericBoundProperty

protected java.lang.String replaceNumericBoundProperty(java.lang.String property,
                                                       java.lang.Integer[] number,
                                                       java.lang.String[] positions)

getAdditionalConfig

public java.util.Map<java.lang.String,java.lang.String> getAdditionalConfig()
Specified by:
getAdditionalConfig in interface PayPalRequestGenerator

setAdditionalConfig

public void setAdditionalConfig(java.util.Map<java.lang.String,java.lang.String> additionalConfig)
Specified by:
setAdditionalConfig in interface PayPalRequestGenerator

getCancelUrl

public java.lang.String getCancelUrl()
Specified by:
getCancelUrl in interface PayPalRequestGenerator

setCancelUrl

public void setCancelUrl(java.lang.String cancelUrl)
Specified by:
setCancelUrl in interface PayPalRequestGenerator

getLibVersion

public java.lang.String getLibVersion()
Specified by:
getLibVersion in interface PayPalRequestGenerator

setLibVersion

public void setLibVersion(java.lang.String libVersion)
Specified by:
setLibVersion in interface PayPalRequestGenerator

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface PayPalRequestGenerator

setPassword

public void setPassword(java.lang.String password)
Specified by:
setPassword in interface PayPalRequestGenerator

getReturnUrl

public java.lang.String getReturnUrl()
Specified by:
getReturnUrl in interface PayPalRequestGenerator

setReturnUrl

public void setReturnUrl(java.lang.String returnUrl)
Specified by:
setReturnUrl in interface PayPalRequestGenerator

getSignature

public java.lang.String getSignature()
Specified by:
getSignature in interface PayPalRequestGenerator

setSignature

public void setSignature(java.lang.String signature)
Specified by:
setSignature in interface PayPalRequestGenerator

getUser

public java.lang.String getUser()
Specified by:
getUser in interface PayPalRequestGenerator

setUser

public void setUser(java.lang.String user)
Specified by:
setUser in interface PayPalRequestGenerator


Copyright © 2012. All Rights Reserved.