JAX-RS

Jakarta RESTful Web Services
開発元 Eclipse Foundation
初版 2008年9月8日(18年前) (2008-09-08)
最新版
4.0 / 2024年4月3日(2年前) (2024-04-03)
リポジトリ ウィキデータを編集
プログラミング
言語
Java
前身 Java API for RESTful Web Services (JAX-RS)
種別 アプリケーションフレームワーク
公式サイト jakarta.ee/specifications/restful-ws/
テンプレートを表示

Jakarta RESTful Web Servicesは、Eclipse Foundationが開発している、RESTアーキテクチャに基づくWebサービスのための機能を提供するJava言語のAPIである。Jakarta EE Platformに含まれている。Java 8まではJava Platform, Enterprise Editionの一部でJava API for RESTful Web Services (JAX-RS) という名称だった。Jakarta RESTful Web ServicesはJava SE 5で導入されたアノテーションの仕組みを用いて、シンプルな開発を実現する。

沿革

仕様

Jakarta RESTful Web Servicesは、リソースクラス(POJOのJavaクラス)をWebリソースにマッピングするのを助けるアノテーションを提供する。アノテーションの例を以下に示す。

加えて、リクエストからメソッドの引数に情報を読み込むためのアノテーションも提供している。これらの@*Paramアノテーションは必要な値を取得するためにキーを要求する。

実装

Jakarta RESTful Web Services自体はAPIであり、実際の実装として下記のようなものがある。

脚注

  1. ↑ Hadley, Marc and Paul Sandoz, eds. (September 17, 2009). JAX-RS: Java API for RESTful WebServices (version 1.1), Java Community Process
  2. ↑ “JSR-000311 JAX-RS: The JavaTM API for RESTful Web Services 1.0 Final Release”. download.oracle.com. 2025年10月19日閲覧。
  3. ↑ “JSR-000311 JAX-RS: The JavaTM API for RESTful Web Services 1.1 Maintenance Release”. download.oracle.com. 2025年10月19日閲覧。
  4. ↑ JSR 339: JAX-RS 2.0: The Java API for RESTful Web Services
  5. ↑ “JSR-000370 Java API for RESTful Web Services 2.1 Specification Final Release for Evaluation”. download.oracle.com. 2025年10月19日閲覧。
  6. ↑ (https://github.com/eclipse-ee4j/jaxrs-api/graphs/contributors), Contributors to Jakarta RESTful Web Services. “Jakarta RESTful Web Services 2.1 - Jakarta RESTful Web Services”. jakarta.ee. 2025年10月19日閲覧。
  7. ↑ (https://github.com/eclipse-ee4j/jaxrs-api/graphs/contributors), Contributors to Jakarta RESTful Web Services. “Jakarta RESTful Web Services 3.0 - Jakarta RESTful Web Services”. jakarta.ee. 2025年10月19日閲覧。
  8. ↑ (https://github.com/eclipse-ee4j/jaxrs-api/graphs/contributors), Contributors to Jakarta RESTful Web Services. “Jakarta RESTful Web Services 3.1 - Jakarta RESTful Web Services”. jakarta.ee. 2025年10月19日閲覧。
  9. ↑ (https://github.com/jakartaee/rest/graphs/contributors), Contributors to Jakarta RESTful Web Services. “Jakarta RESTful Web Services 4.0 - Jakarta RESTful Web Services”. jakarta.ee. 2025年10月19日閲覧。
  10. ↑ Mark Little, A Comparison of JAX-RS Implementations

外部リンク