123.3. Spring Boot Auto-Configuration
组件支持 13 个选项,如下所列。
Name | 描述 | 默认值 | 类型 |
---|---|---|---|
camel.component.google-mail-stream.client-factory | 客户端工厂。选项是 org.apache.camel.component.google.mail.GoogleMailClientFactory 类型。 | 字符串 | |
camel.component.google-mail-stream.configuration.access-token | OAuth 2 访问令牌。这通常在一小时后过期,因此建议使用 refreshToken 进行长期使用。 | 字符串 | |
camel.component.google-mail-stream.configuration.application-name | Google 邮件应用名称。示例将是 camel-google-mail/1.0 | 字符串 | |
camel.component.google-mail-stream.configuration.client-id | 邮件应用程序的客户端 ID | 字符串 | |
camel.component.google-mail-stream.configuration.client-secret | 邮件应用程序的客户端 secret | 字符串 | |
camel.component.google-mail-stream.configuration.index | 指定端点的索引 | 字符串 | |
camel.component.google-mail-stream.configuration.labels | 要考虑的以逗号分隔的标签列表 | 字符串 | |
camel.component.google-mail-stream.configuration.mark-as-read | 在被使用后将消息标记为 read | false | 布尔值 |
camel.component.google-mail-stream.configuration.max-results | 要返回的最大结果 | 10 | Long |
camel.component.google-mail-stream.configuration.query | 在 gmail 框中执行的查询 | is:unread | 字符串 |
camel.component.google-mail-stream.configuration.refresh-token | OAuth 2 刷新令牌。使用这个,Google Calendar 组件可在当前存在时获得一个新的 accessToken - 如果应用程序长期需要,则可能需要获取一个新的 accessToken。 | 字符串 | |
camel.component.google-mail-stream.enabled | 是否启用 google-mail-stream 组件的自动配置。这默认是启用的。 | 布尔值 | |
camel.component.google-mail-stream.resolve-property-placeholders | 启动时组件是否应解析自身上的属性占位符。只有属于 String 类型的属性才能使用属性占位符。 | true | 布尔值 |