如何使用 MuleESB Jersey 通过 PUT 或 POST 接收文件?

发布于 2024-10-04 04:10:23 字数 187 浏览 1 评论 0原文

我在 Mule v2.2.1 中使用 Jersey 来公开 REST 接口。我无法确定如何公开服务和处理文件。例如,我正在寻找这样的东西:

@POST

@Path ("\processFile")

@Consumes ("plain/text")

void processFile ();

I'm using Jersey in Mule v2.2.1 to expose a REST interface. I having trouble determining how to expose the service and process the file. For example, I'm looking for something like this:

@POST

@Path ("\processFile")

@Consumes ("plain/text")

void processFile ();

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

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

发布评论

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

评论(1

冷弦 2024-10-11 04:10:23

您是否在 TCP 套接字上设置了端点以将数据从网络获取到您的 processFile 方法?如果不这样做,该方法将永远不会被调用。

Do you have an endpoint set up on a TCP socket to get the data from the network to your processFile method? The method will never get called if you do not.

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