6.3. Spring Boot Auto-Configuration

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

名称描述默认类型

camel.component.apns.apns-service

要使用的 ApnsService。org.apache.camel.component.apns.factory.ApnsServiceFactory 可用于构建 ApnsService。选项为 com.notnoop.apns.ApnsService 类型。

 

字符串

camel.component.apns.enabled

启用 apns 组件

true

布尔值

camel.component.apns.resolve-property-placeholders

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

true

布尔值

您可以使用以下格式在 URI 中附加查询选项 ?option=value&option=value&…​

6.3.1. 组件

ApnsComponent 必须使用 com.notnoop.apns.ApnsService 进行配置。可以使用 org.apache.camel.component.apns.factory.ApnsServiceFactory 创建和配置该服务。请参阅以下示例。以及测试 源代码

6.3.1.1. SSL 设置

要使用安全连接,org.apache.camel.jsse.jsse.SSLContextParameters 实例应当注入到 org.apache.camel.component.apns.factory.ApnsServiceFactory,用于配置该组件。如需示例,请参阅 test 资源。SSL 示例