289.16. Spring Boot Auto-Configuration


组件支持 85 个选项,如下所列。

Expand
Name描述默认值类型

camel.component.salesforce.authentication-type

明确使用的身份验证方法,其中一个 USERNAME_PASSWORD、REFRESH_TOKEN 或 JWT。salesforce 组件可以自动确定要从属性集中使用的身份验证方法,将此属性设置为消除任何不确定性。

 

AuthenticationType

camel.component.salesforce.client-id

在 Salesforce 实例设置中配置的已连接应用程序的 OAuth 消费者密钥。通常,需要配置连接的应用程序,但可以通过安装软件包来提供。

 

字符串

camel.component.salesforce.client-secret

在 Salesforce 实例设置中配置的已连接应用程序的 OAuth 消费者 Secret。

 

字符串

camel.component.salesforce.config.apex-method

APEX 方法名称

 

字符串

camel.component.salesforce.config.apex-query-params

查询 APEX 方法的参数

 

Map

camel.component.salesforce.config.apex-url

APEX 方法 URL

 

字符串

camel.component.salesforce.config.api-version

salesforce API 版本,默认为 SalesforceEndpointConfig.DEFAULT_VERSION

 

字符串

camel.component.salesforce.config.approval

Approval API 的批准请求。@param approval

 

ApprovalRequest

camel.component.salesforce.config.approval-action-type

代表要执行的操作类型: Submit、Approve 或 Reject。@param actionType

 

ApprovalRequest$Action

camel.component.salesforce.config.approval-comments

要添加到与此请求关联的历史记录步骤的注释。@param 注释

 

字符串

camel.component.salesforce.config.approval-context-actor-id

请求批准记录的提交者 ID。@param contextActorId

 

字符串

camel.component.salesforce.config.approval-context-id

正在处理的项目的 ID。@param contextId

 

字符串

camel.component.salesforce.config.approval-next-approver-ids

如果进程需要指定下一个批准,则需要为下一个请求分配用户的 ID。@param nextApproverIds

 

list

camel.component.salesforce.config.approval-process-definition-name-or-id

进程定义的开发人员名称或 ID。@param processDefinitionNameOrId

 

字符串

camel.component.salesforce.config.approval-skip-entry-criteria

如果进程定义名称或 ID 不为空,则决定是否评估进程的条目条件(true)或 not (false)。如果没有指定进程定义名称或 ID,则忽略此参数,并根据进程顺序进行标准评估。默认情况下,如果没有由此请求设置,则条目条件不会被跳过。@param skipEntryCriteria

 

布尔值

camel.component.salesforce.config.backoff-increment

对于流连接重启尝试超过 CometD auto-reconnect 的 backoff 间隔递增。

 

Long

camel.component.salesforce.config.batch-id

批量 API 批处理 ID

 

字符串

camel.component.salesforce.config.content-type

批量 API 内容类型, XML, CSV, ZIP_XML, ZIP_CSV 之一

 

ContentType

camel.component.salesforce.config.default-replay-id

如果没有在 initialReplayIdMap 中找到值,则默认 replayId 设置

 

Long

camel.component.salesforce.config.format

用于 Salesforce API 调用的 payload 格式(JSON 或 XML)默认为 JSON

 

PayloadFormat

camel.component.salesforce.config.http-client

自定义 Jetty Http 客户端用于连接到 Salesforce。

 

SalesforceHttpClient

camel.component.salesforce.config.include-details

在 Salesforce1 分析报告中包括详细信息,默认为 false。

 

布尔值

camel.component.salesforce.config.initial-replay-id-map

重播 ID 从每个频道名称开始。

 

Map

camel.component.salesforce.config.instance-id

Salesforce1 Analytics 报告执行实例 ID

 

字符串

camel.component.salesforce.config.job-id

批量 API 作业 ID

 

字符串

camel.component.salesforce.config.limit

返回的记录数量的限制。适用于某些 API,请查看 Salesforce 文档。

 

整数

camel.component.salesforce.config.max-backoff

Streaming connection restart attempt for failures beyond CometD auto-reconnect 的最大 backoff 间隔。

 

Long

camel.component.salesforce.config.not-found-behaviour

设置从 Salesforce API 收到的 404 未找到状态的行为。如果正文设置为 NULL NotFoundBehaviour#NULL,或者应该在交换 NotFoundBehaviour CPUfreqEXCEPTION 上发送异常。

 

NotFoundBehaviour

camel.component.salesforce.config.notify-for-fields

notify for fields, options are ALL, REFERENCED, SELECT, WHERE

 

NotifyForFieldsEnum

camel.component.salesforce.config.notify-for-operation-create

notify 用于 create 操作,默认为 false (API version = 29.0)

 

布尔值

camel.component.salesforce.config.notify-for-operation-delete

notify 用于 delete 操作,默认为 false (API version = 29.0)

 

布尔值

camel.component.salesforce.config.notify-for-operation-undelete

notify 为 un-delete 操作,默认为 false (API version = 29.0)

 

布尔值

camel.component.salesforce.config.notify-for-operation-update

notify 用于 update 操作,默认为 false (API version = 29.0)

 

布尔值

camel.component.salesforce.config.notify-for-operations

notify for operations, options are ALL, CREATE, EXTENDED, UPDATE (API 版本 29.0)

 

NotifyForOperations Enum

camel.component.salesforce.config.object-mapper

自定义 Jackson ObjectMapper 在序列化/撤销 Salesforce 对象时使用。

 

ObjectMapper

camel.component.salesforce.config.raw-payload

将原始有效负载字符串用于请求和响应(JSON 或 XML 根据格式),而不是 DTOs,默认为 false

false

布尔值

camel.component.salesforce.config.report-id

Salesforce1 Analytics 报告 Id

 

字符串

camel.component.salesforce.config.report-metadata

Salesforce1 Analytics 报告用于过滤的元数据

 

ReportMetadata

camel.component.salesforce.config.result-id

批量 API 结果 ID

 

字符串

camel.component.salesforce.config.s-object-blob-field-name

SObject blob 字段名称

 

字符串

camel.component.salesforce.config.s-object-class

完全限定的 SObject 类名称,通常使用 camel-salesforce-maven-plugin 生成

 

字符串

camel.component.salesforce.config.s-object-fields

用于检索的 SObject 字段

 

字符串

camel.component.salesforce.config.s-object-id

API 需要 SObject ID

 

字符串

camel.component.salesforce.config.s-object-id-name

SObject 外部 ID 字段名称

 

字符串

camel.component.salesforce.config.s-object-id-value

SObject 外部 ID 字段值

 

字符串

camel.component.salesforce.config.s-object-name

SObject 名称(如果 API 需要或支持)

 

字符串

camel.component.salesforce.config.s-object-query

salesforce SOQL 查询字符串

 

字符串

camel.component.salesforce.config.s-object-search

salesforce SOSL 搜索字符串

 

字符串

camel.component.salesforce.config.serialize-nulls

如果给定 DTO 的 NULL 值被序列化为空(NULL)值。这只会影响 JSON 数据格式。

false

布尔值

camel.component.salesforce.config.update-topic

使用 Streaming API 时是否更新现有的 Push Topic,默认为 false

false

布尔值

camel.component.salesforce.enabled

启用 salesforce 组件

true

布尔值

camel.component.salesforce.http-client-properties

用于设置可以在底层 HTTP 客户端上配置的任何属性。查看 SalesforceHttpClient 的属性,以及适用于所有可用选项的 Jetty HttpClient。

 

Map

camel.component.salesforce.http-proxy-auth-uri

用于针对 HTTP 代理服务器进行身份验证,需要与代理服务器的 URI 匹配,以便使用 httpProxyUsername 和 httpProxyPassword 进行身份验证。

 

字符串

camel.component.salesforce.http-proxy-excluded-addresses

不应使用 HTTP 代理服务器的地址列表。

 

Set

camel.component.salesforce.http-proxy-host

要使用的 HTTP 代理服务器的主机名。

 

字符串

camel.component.salesforce.http-proxy-included-addresses

应该使用 HTTP 代理服务器的地址列表。

 

Set

camel.component.salesforce.http-proxy-password

用于对 HTTP 代理服务器进行身份验证的密码。

 

字符串

camel.component.salesforce.http-proxy-port

要使用的 HTTP 代理服务器的端口号。

 

整数

camel.component.salesforce.http-proxy-realm

代理服务器的域,用于针对 HTTP 代理服务器抢占 Basic/Digest 身份验证方法。

 

字符串

camel.component.salesforce.http-proxy-use-digest-auth

如果设置为 true Digest 身份验证,则在向 HTTP 代理进行身份验证时使用,否则将使用基本授权方法

false

布尔值

camel.component.salesforce.http-proxy-username

用于对 HTTP 代理服务器进行身份验证的用户名。

 

字符串

camel.component.salesforce.instance-url

身份验证后使用的 Salesforce 实例的 URL,默认从 Salesforce 网站接收了成功身份验证

 

字符串

camel.component.salesforce.is-http-proxy-secure

如果设置为 false,则禁用在访问 HTTP 代理时使用 TLS。

true

布尔值

camel.component.salesforce.is-http-proxy-socks4

如果设置为 true,则将 HTTP 代理配置为用作 SOCKS4 代理。

false

布尔值

camel.component.salesforce.keystore

在 OAuth JWT 流中使用的密钥存储参数。KeyStore 应该只包含一个带有私钥和证书的条目。salesforce 不会验证证书链,因此这很容易是自签名证书。确保将证书上传到对应的连接的应用程序。选项是 org.apache.camel.util.jsse.KeyStoreParameters 类型。

 

字符串

camel.component.salesforce.lazy-login

如果设置为 true,则组件可以防止组件通过启动组件向 Salesforce 进行身份验证。您通常会将其设置为 (默认) false,并提前进行身份验证,并立即了解任何身份验证问题。

false

布尔值

camel.component.salesforce.login-config.client-id

salesforce connected application Consumer Key

 

字符串

camel.component.salesforce.login-config.client-secret

salesforce connected application Consumer Secret

 

字符串

camel.component.salesforce.login-config.instance-url

  

字符串

camel.component.salesforce.login-config.keystore

密钥存储的密钥存储参数,其中包含 OAuth 2.0 JWT Bearer Token 流所需的证书和私钥。

 

KeyStoreParameters

camel.component.salesforce.login-config.lazy-login

用于启用/禁用 lazy OAuth 的标记,默认为 false。启用后,在第一个 API 调用前,不会进行 OAuth 令牌检索或生成

 

布尔值

camel.component.salesforce.login-config.login-url

salesforce 登录 URL,默认为 https://login.salesforce.com

 

字符串

camel.component.salesforce.login-config.password

salesforce account password

 

字符串

camel.component.salesforce.login-config.refresh-token

salesforce connected application Consumer token

 

字符串

camel.component.salesforce.login-config.type

  

AuthenticationType

camel.component.salesforce.login-config.user-name

salesforce 帐户用户名

 

字符串

camel.component.salesforce.login-url

用于身份验证的 Salesforce 实例的 URL,默认设置为 https://login.salesforce.com

https://login.salesforce.com

字符串

camel.component.salesforce.long-polling-transport-properties

用于在流传输 api 使用的 BayeuxClient (CometD)上使用的 LongPollingTransport 上配置的任何属性

 

Map

camel.component.salesforce.packages

在哪些软件包中是生成的 DTO 类。通常,类将使用 camel-salesforce-maven-plugin 生成。如果使用生成的 DTOs 来获得在 parameters/header 值中使用简短 SObject 名称的好处,则设置它。

 

string[]

camel.component.salesforce.password

OAuth 流中使用的密码,以获取对访问令牌的访问权限。使用密码 OAuth 流很容易,但通常应该避免它,因为它被视为不如其他流的安全性。如果使用,请确保将安全令牌附加到密码的末尾。

 

字符串

camel.component.salesforce.refresh-token

刷新令牌已在刷新令牌 OAuth 流中获取。一个需要设置 Web 应用程序并配置回调 URL 以接收刷新令牌,或使用 https://login.salesforce.com/services/oauth2/successhttps://test.salesforce.com/services/oauth2/success 的内置回调进行配置,然后从流末尾的 URL 中重试 refresh_token。请注意,在开发组织中,Salesforce 允许在 localhost 处托管回调 Web 应用程序。

 

字符串

camel.component.salesforce.resolve-property-placeholders

组件是否应在启动时解析属性占位符。只有 String 类型的属性可以使用属性占位符。

true

布尔值

camel.component.salesforce.ssl-context-parameters

要使用的 SSL 参数,请参阅所有可用选项的 SSLContextParameters 类。选项是 org.apache.camel.util.jsse.SSLContextParameters 类型。

 

字符串

camel.component.salesforce.use-global-ssl-context-parameters

启用使用全局 SSL 上下文参数

false

布尔值

camel.component.salesforce.user-name

OAuth 流中使用的用户名,以获取对访问令牌的访问权限。使用密码 OAuth 流很容易,但通常应该避免它,因为它被视为不如其他流的安全性。

 

字符串

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部