MULE 中 Flow 的动态变量?
我在 MULE 中有一个流程,其中包含 HTTP 入站和组件类,如下所示:
<flow name="MetaService">
<http:inbound-endpoint address="http://localhost:8000/jcore/meta/user"
transformer-refs="HttpParams" responseTransformer-refs="JavaObjectToJson">
</http:inbound-endpoint>
<component class = "com.jcore.Meta" />
</flow>
现在,如果我必须接受另一个 URL 的请求,例如“localhost:8000/jcore/meta/user2”,我必须创建另一个流程..! !
MULE中有没有像“localhost:8000/jcore/meta/{variable}”这样的选项,我可以在其中读取该变量并根据该变量调用适当的组件类..?
I have a Flow in MULE which contains a HTTP inbound and component class like below :
<flow name="MetaService">
<http:inbound-endpoint address="http://localhost:8000/jcore/meta/user"
transformer-refs="HttpParams" responseTransformer-refs="JavaObjectToJson">
</http:inbound-endpoint>
<component class = "com.jcore.Meta" />
</flow>
Now if i have to accept request for another URL, like "localhost:8000/jcore/meta/user2", i have to create another flow..!!
Is there any option in MULE like "localhost:8000/jcore/meta/{variable}" , where in i can read that variable and call the appropriate component class according to that..??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)