我正在使用带有http4组件(2.12.2版本)的scala akka-camel。 我创建一个骆驼生产商,终点:驼峰Http4 2.12.2:“httpClientConfigurer”不能从端点推断URI3
def endpointUri = "https4://host-path" +
"?bridgeEndpoint=true" +
"&httpClientConfigurer=#configurer" +
"&clientConnectionManager=#manager"
其中configurer
是骆驼背景下的注册表(该原则同样适用于manager
)注册的HttpClientConfigurer
。
当我发送CamelMessage到终点,我可以在阿卡记录此看到:
DEBUG o.a.c.component.http4.HttpComponent - Creating endpoint uri https4://host-path?bridgeEndpoint=true&httpClientConfigurer=#configurer&clientConnectionManager=#manager
DEBUG o.a.camel.util.IntrospectionSupport - Configured property: clientConnectionManager on bean: Endpoint["https4://host-path?bridgeEndpoint=true&httpClientConfigurer=#configurer&clientConnectionManager=#manager"] with value: [email protected]f
DEBUG o.a.camel.util.IntrospectionSupport - Configured property: bridgeEndpoint on bean: Endpoint["https4://host-path?bridgeEndpoint=true&httpClientConfigurer=#configurer&clientConnectionManager=#manager"] with value: true
INFO o.a.c.component.http4.HttpComponent - Registering SSL scheme https on port 443
INFO o.a.c.component.http4.HttpComponent - Registering SSL scheme https4 on port 443
所以httpClientConfigurer未配置,我不知道为什么它忽略此参数。我一直在Apache Camel问题追踪器上寻找任何相关的问题,但我没有发现任何相似的问题。
有什么想法? 在此先感谢。
我会在这个类中使用调试器:https://git-wip-us.apache.org/repos/asf?p=camel.git;a=blob;f=components/camel-http4/src/ main/java/org/apache/camel/component/http4/HttpEndpoint.java; h = 2ef06b8bc54ba9f88e86ea5e99391621af68f698; hb = HEAD,看看发生了什么。另外,如果你使用SSL,你不应该使用'https4'而不是'http4s'吗? – hveiga
我会尝试调试该类下载源。关于'http4s',这只是一种印刷错误,对不起。 –