Class BraintreeConfiguration
- java.lang.Object
-
- org.apache.camel.component.braintree.BraintreeConfiguration
-
- Direct Known Subclasses:
AddOnGatewayEndpointConfiguration
,AddressGatewayEndpointConfiguration
,ClientTokenGatewayEndpointConfiguration
,CreditCardVerificationGatewayEndpointConfiguration
,CustomerGatewayEndpointConfiguration
,DiscountGatewayEndpointConfiguration
,DisputeGatewayEndpointConfiguration
,DocumentUploadGatewayEndpointConfiguration
,MerchantAccountGatewayEndpointConfiguration
,PaymentMethodGatewayEndpointConfiguration
,PaymentMethodNonceGatewayEndpointConfiguration
,PlanGatewayEndpointConfiguration
,ReportGatewayEndpointConfiguration
,SettlementBatchSummaryGatewayEndpointConfiguration
,SubscriptionGatewayEndpointConfiguration
,TransactionGatewayEndpointConfiguration
,WebhookNotificationGatewayEndpointConfiguration
@UriParams @Configurer(extended=true) public class BraintreeConfiguration extends Object
Component configuration for Braintree component.
-
-
Constructor Summary
Constructors Constructor Description BraintreeConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessToken()
BraintreeApiName
getApiName()
String
getEnvironment()
String
getHttpLogLevel()
String
getHttpLogName()
Integer
getHttpReadTimeout()
String
getMerchantId()
String
getMethodName()
String
getPrivateKey()
String
getProxyHost()
Integer
getProxyPort()
String
getPublicKey()
boolean
isLogHandlerEnabled()
void
setAccessToken(String accessToken)
The access token granted by a merchant to another in order to process transactions on their behalf.void
setApiName(BraintreeApiName apiName)
What kind of operation to performvoid
setEnvironment(String environment)
The environment Either SANDBOX or PRODUCTIONvoid
setHttpLogLevel(String httpLogLevel)
Set logging level for http calls, @see java.util.logging.Levelvoid
setHttpLogName(String httpLogName)
Set log category to use to log http calls.void
setHttpReadTimeout(Integer httpReadTimeout)
Set read timeout for http calls.void
setLogHandlerEnabled(boolean logHandlerEnabled)
Sets whether to enable the BraintreeLogHandler.void
setMerchantId(String merchantId)
The merchant id provided by Braintree.void
setMethodName(String methodName)
What sub operation to use for the selected operationvoid
setPrivateKey(String privateKey)
The private key provided by Braintree.void
setProxyHost(String proxyHost)
The proxy hostvoid
setProxyPort(Integer proxyPort)
The proxy portvoid
setPublicKey(String publicKey)
The public key provided by Braintree.
-
-
-
Method Detail
-
getApiName
public BraintreeApiName getApiName()
-
setApiName
public void setApiName(BraintreeApiName apiName)
What kind of operation to perform
-
getMethodName
public String getMethodName()
-
setMethodName
public void setMethodName(String methodName)
What sub operation to use for the selected operation
-
getEnvironment
public String getEnvironment()
-
setEnvironment
public void setEnvironment(String environment)
The environment Either SANDBOX or PRODUCTION
-
getMerchantId
public String getMerchantId()
-
setMerchantId
public void setMerchantId(String merchantId)
The merchant id provided by Braintree.
-
getPublicKey
public String getPublicKey()
-
setPublicKey
public void setPublicKey(String publicKey)
The public key provided by Braintree.
-
getPrivateKey
public String getPrivateKey()
-
setPrivateKey
public void setPrivateKey(String privateKey)
The private key provided by Braintree.
-
getAccessToken
public String getAccessToken()
-
setAccessToken
public void setAccessToken(String accessToken)
The access token granted by a merchant to another in order to process transactions on their behalf. Used in place of environment, merchant id, public key and private key fields.
-
getProxyHost
public String getProxyHost()
-
setProxyHost
public void setProxyHost(String proxyHost)
The proxy host
-
getProxyPort
public Integer getProxyPort()
-
setProxyPort
public void setProxyPort(Integer proxyPort)
The proxy port
-
getHttpLogLevel
public String getHttpLogLevel()
-
setHttpLogLevel
public void setHttpLogLevel(String httpLogLevel)
Set logging level for http calls, @see java.util.logging.Level
-
getHttpLogName
public String getHttpLogName()
-
setHttpLogName
public void setHttpLogName(String httpLogName)
Set log category to use to log http calls.
-
getHttpReadTimeout
public Integer getHttpReadTimeout()
-
setLogHandlerEnabled
public void setLogHandlerEnabled(boolean logHandlerEnabled)
Sets whether to enable the BraintreeLogHandler. It may be desirable to set this to 'false' where an existing JUL - SLF4J logger bridge is on the classpath. This option can also be configured globally on the BraintreeComponent.
-
isLogHandlerEnabled
public boolean isLogHandlerEnabled()
-
setHttpReadTimeout
public void setHttpReadTimeout(Integer httpReadTimeout)
Set read timeout for http calls.
-
-