实施 RESTful Web 服务

发布于 2024-08-03 09:10:21 字数 127 浏览 3 评论 0原文

我需要创建 RESTful Web 服务。

我已经缩小了 Web 服务实现的“Restlet”范围。

有人可以告诉我使用 Restlet 的明确优点和缺点,以及是否有更好的替代方案。

提前致谢

I have a requirement to create RESTful web service.

I have narrowed down on 'Restlet' for the web service implementation.

Can someone tell me the clear pro's and con's of using Restlet and if there are any better alternatives.

thanks in advance

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

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

发布评论

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

评论(5

遇见了你 2024-08-10 09:10:21

Restlet 拥有针对 Spring、WADL、XML、JSON 等的广泛扩展列表,其中包括一个扩展用于 JAX-RS API。

它也是提供六个一致版本的唯一框架:

  • Java SE
  • Java EE
  • Google Web Toolkit
  • Google AppEngine
  • Android
  • OSGi 环境

它的主要优点是:

  • 当 JAX-RS 设计用于服务器端处理
  • 连接器时,客户端和服务器 API 完全对称,而不是 HTTP(映射到 HTTP 语义) 当 JAX-RS 是 HTTP 时,只有
  • 更广泛的功能范围,包括通过 Restlet API 进行完整的 URI 路由控制(但如果需要,可以与 Servlet 集成)
  • 全面提供 NIO 支持

如果您仅限于 JCP 批准的 API(那么不要使用 Spring 或任何扩展),JAX-RS API 可能是一个不错的选择像 Jersey 和 RESTeasy 这样的 JAX-RS 项目的一部分!),但除此之外,Restlet 是最成熟的框架(最初于 2005 年发布),并且将在其 2.0 版本中为您提供注释与强大且可扩展的类相结合的所有好处 -面向的框架。

如需查看更长的功能列表,请查看此页面

此致,
Jerome Louvel

Restlet ~ 创始人兼首席开发人员 ~ http://www.restlet.org

Restlet has an extensive list of extensions for Spring, WADL, XML, JSON as well and many more, including an extension for JAX-RS API.

It is also the sole framework available in six consistent editions:

  • Java SE
  • Java EE
  • Google Web Toolkit
  • Google AppEngine
  • Android
  • OSGi Environments

Its main benefits are:

  • fully symmetric client and server API when JAX-RS was designed for server-side processing
  • connectors for other protocols than HTTP (mapping to HTTP semantics) when JAX-RS is HTTP only
  • much broader feature scope including full URI routing control via the Restlet API (but can integrate with Servlet if needed)
  • full provision for NIO support

The JAX-RS API can be a good choice if you are restricted to JCP approved APIs (then don't use Spring or any extension of the JAX-RS projects like Jersey and RESTeasy!), but otherwise Restlet is the most mature framework (initially released in 2005) and will give you, in its 2.0 version, all the benefits of annotations combined with a powerful and extensible class-oriented framework.

For a longer list of features, please check this page.

Best regards,
Jerome Louvel

Restlet ~ Founder and Lead developer ~ http://www.restlet.org

悟红尘 2024-08-10 09:10:21

有关 JAX-RS 框架的比较,请参阅 JAX-RS 框架

For a comparison of JAX-RS frameworks see JAX-RS Frameworks

南城追梦 2024-08-10 09:10:21

Jersey API 可用于实现 RESTful Web 服务。
http://jersey.java.net/

除了 RESTful Web 服务之外,Jersey 还提供许多其他功能。

Jersey API can be used to implement RESTful Web services.
http://jersey.java.net/

Other than RESTful Web services, Jersey also provide many other features.

孤独岁月 2024-08-10 09:10:21

Apache Cocoon 是实现 RESTfull Web 服务的一个非常好的解决方案。

Apache Cocoon is a very good solution to implementing a RESTfull Web Services.

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