368.3. Spring Boot Auto-Configuration
组件支持 15 个选项,它们如下所列。
名称 | 描述 | 默认 | 类型 |
---|---|---|---|
camel.component.websocket.enable-jmx | 如果这个选项为 true,将为此端点启用 Jetty JMX 支持。详情请查看 Jetty JMX 支持。 | false | 布尔值 |
camel.component.websocket.enabled | 启用 websocket 组件 | true | 布尔值 |
camel.component.websocket.host | 主机名.默认值为 0.0.0.0 | 0.0.0.0 | 字符串 |
camel.component.websocket.max-threads | 设置服务器线程池中最大线程数的值。由于切换到 Jetty9,需要 MaxThreads/minThreads 或 threadPool 字段。最大线程数的默认值为 1 2 noCores。 | 整数 | |
camel.component.websocket.min-threads | 设置服务器线程池中最少的线程数量的值。由于切换到 Jetty9,需要 MaxThreads/minThreads 或 threadPool 字段。minThreads 的默认值为 1。 | 整数 | |
camel.component.websocket.port | 端口号。默认值为 9292 | 9292 | 整数 |
camel.component.websocket.resolve-property-placeholders | 启动时,组件是否应自行解析属性占位符。只有 String 类型的属性才能使用属性占位符。 | true | 布尔值 |
camel.component.websocket.socket-factory | 要配置包含用于子协议的自定义 WebSocketFactory 的映射。映射中的密钥是子协议。默认密钥为默认实现保留。 | map | |
camel.component.websocket.ssl-context-parameters | 使用 SSLContextParameters 配置安全性。选项是一个 org.apache.camel.util.jsse.SSLContextParameters 类型。 | 字符串 | |
camel.component.websocket.ssl-key-password | 使用 SSL 时密钥存储的密码。 | 字符串 | |
camel.component.websocket.ssl-keystore | 密钥存储的路径。 | 字符串 | |
camel.component.websocket.ssl-password | 使用 SSL 时的密码。 | 字符串 | |
camel.component.websocket.static-resources | 为静态资源(如 .html 文件等)设置资源路径。如果您使用 classpath: 前缀,可以从 classpath 加载这些资源,否则会从文件系统或 JAR 文件加载资源。例如,要从 root classpath 中加载使用 classpath:. 或 classpath:WEB-INF/static 如果尚未配置(为空),则不会使用静态资源。 | 字符串 | |
camel.component.websocket.thread-pool | 为服务器使用自定义线程池。由于切换到 Jetty9,需要 MaxThreads/minThreads 或 threadPool 字段。选项是一个 org.eclipse.jetty.util.thread.ThreadPool 类型。 | 字符串 | |
camel.component.websocket.use-global-ssl-context-parameters | 启用使用全局 SSL 上下文参数。 | false | 布尔值 |