138.15. 自定义 Vert.x Web Client 选项
当需要更精细地控制 Vert.x Web 客户端配置时,您可以将自定义 WebClientOptions 实例绑定到 registry。
WebClientOptions options = new WebClientOptions().setMaxRedirects(5) .setIdleTimeout(10) .setConnectTimeout(3); camelContext.getRegistry.bind("clientOptions", options);
然后,引用 vertx-http
producer 上的选项。
from("direct:start") .to("vertx-http:http://localhost:8080?webClientOptions=#clientOptions")
138.15.1. SSL
Vert.x HTTP 组件通过 Camel JSSE 配置实用程序 支持 SSL/TLS 配置。
也可以通过提供自定义 WebClientOptions
来配置 SSL 选项。