我如何要求邮递员的骆驼封闭式端点?
我有一个使用Apache Camel的春季项目。 我想使用Postman请求尝试Camel-context.xml中提供的服务。 如何推断路径变量和端点?
我要使用的方法如下所示,在camel-context.xml上,我有参数提供包含条件。
<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>
...
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Postman不支持在UDP上发送。
Postman doesn't support sending on UDP.