245.3. Spring Boot Auto-Configuration


组件支持 14 个选项,它们如下所列。

名称描述默认类型

camel.component.olingo2.configuration.api-name

要执行的操作种类

 

Olingo2ApiName

camel.component.olingo2.configuration.connect-timeout

HTTP 连接创建超时,以毫秒为单位,默认为 30,000 (30 秒)

30000

整数

camel.component.olingo2.configuration.content-type

content-Type 标头值可以用来指定 JSON 或 XML 消息格式,默认为 application/json;charset=utf-8

application/json;charset=utf-8

字符串

camel.component.olingo2.configuration.http-async-client-builder

自定义 HTTP async 客户端构建器用于更复杂的 HTTP 客户端配置,覆盖 connectionTimeout、socketTimeout、代理和 sslContext。请注意,在构建器中指定 socketTimeout MUST,否则 OData 请求可能会无限期阻断

 

HttpAsyncClientBuilder

camel.component.olingo2.configuration.http-client-builder

自定义 HTTP 客户端构建器用于更复杂的 HTTP 客户端配置,覆盖 connectionTimeout、socketTimeout、代理和 sslContext。请注意,在构建器中指定 socketTimeout MUST,否则 OData 请求可能会无限期阻断

 

HttpClientBuilder

camel.component.olingo2.configuration.http-headers

要注入每个请求的自定义 HTTP 标头,这可能包括 OAuth 令牌等。

 

map

camel.component.olingo2.configuration.method-name

用于所选操作的子操作

 

字符串

camel.component.olingo2.configuration.proxy

HTTP 代理服务器配置

 

HttpHost

camel.component.olingo2.configuration.service-uri

目标 OData 服务基础 URI,例如 http://services.odata.org/OData/OData.svc

 

字符串

camel.component.olingo2.configuration.socket-timeout

HTTP 请求超时(毫秒)默认为 30,000 (30 秒)

30000

整数

camel.component.olingo2.configuration.ssl-context-parameters

使用 SSLContextParameters 配置安全性

 

SSLContextParameters

camel.component.olingo2.enabled

启用 olingo2 组件

true

布尔值

camel.component.olingo2.resolve-property-placeholders

启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。

true

布尔值

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

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

false

布尔值

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

© 2024 Red Hat, Inc.