如何使用 MuleESB Jersey 通过 PUT 或 POST 接收文件?
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否在 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.