gpt4 book ai didi

spring - Apache CXF 管道匹配策略

转载 作者:行者123 更新时间:2023-12-04 15:46:00 26 4
gpt4 key购买 nike

也许有人知道 Apache CXF 如何匹配 Spring 中配置的 HTTP 管道?我的意思是,这是管道定义:

<http-conf:conduit name="{http://abc.com/wsdl}MyPortHttp.http-conduit">
<http-conf:client Connection="Keep-Alive" MaxRetransmits="1" ReceiveTimeout="180000" />
</http-conf:conduit>

如果我省略 .http-conduit 会发生什么部分?实际匹配的代码在哪里?我的快速搜索没有效果。

最佳答案

它主要在 org.apache.cxf.transport.http.HTTPTransportFactory#configure(Object, String, String) 中完成.然后发送到 org.apache.cxf.configuration.spring.ConfigurerImpl.configureBean(String, Object, boolean) .如果省略 .http-conduit部分,配置对于 CXF 不可见,因为它具有非常简单的匹配行为:通过通配符或管道名称(org.apache.cxf.transport.http.HTTPConduit.getBeanName() 包含硬编码的 .http-conduit 后缀)。

此外,当通配符管道覆盖特定于端口的管道时,我遇到了一种奇怪的行为。查询 this问题。

关于spring - Apache CXF 管道匹配策略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14360244/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com