我如何要求邮递员的骆驼封闭式端点?

发布于 2025-02-04 20:51:30 字数 742 浏览 2 评论 0原文

我有一个使用Apache Camel的春季项目。 我想使用Postman请求尝试Camel-context.xml中提供的服务。 如何推断路径变量和端点?

我要使用的方法如下所示,在camel-context.xml上,我有参数提供包含条件。

            <route>
        <from uri="netty:udp://{{camel.netty.server}}:{{camel.netty.udp.port}}?sync=false&amp;allowDefaultCodec=true;" />           
        <convertBodyTo type="java.lang.String" charset="ISO-8859-9" />
        <choice>
            <when>
                <simple trim="true">${bodyAs(String)} contains '"ISN":"90"'</simple>                    
                <bean ref="Feaser" method="run" cache="false"></bean>
                <to uri="mock:result" />
            </when>
            ...

I have a spring project using apache camel.
I want to try the services provided in camel-context.xml using a postman request.
How can I infer the path variables and endpoint?

The method I want to use is specified like below on camel-context.xml and I have parameters providing the contains conditions.

            <route>
        <from uri="netty:udp://{{camel.netty.server}}:{{camel.netty.udp.port}}?sync=false&allowDefaultCodec=true;" />           
        <convertBodyTo type="java.lang.String" charset="ISO-8859-9" />
        <choice>
            <when>
                <simple trim="true">${bodyAs(String)} contains '"ISN":"90"'</simple>                    
                <bean ref="Feaser" method="run" cache="false"></bean>
                <to uri="mock:result" />
            </when>
            ...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一身仙ぐ女味 2025-02-11 20:51:31

Postman不支持在UDP上发送。

Postman doesn't support sending on UDP.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文