Skip to content

Day 03 — JAX-RS 3.1 Fundamentals & REST Resource Architecture

Daily Time Investment: 2.0 hours | Week: 1 | Phase: 3


Daily Schedule

Segment Duration Activity
Core Theory 45 min @Path, HTTP verbs, @PathParam/@QueryParam/@HeaderParam, content negotiation, Response builder
Book Reading 30 min EE8 AppDev Ch10 + (Web APIs / JEETT Ch4)
Hands-On Lab 45 min CRUD TelemetryResource with embedded Grizzly + Jersey

Files in This Day

  • EE8 AppDev Ch10 — RESTful Web Services with JAX-RS


    @Path, HTTP verbs, parameter annotations, content negotiation, Response builder, JAX-RS client API, Server-Sent Events intro.

    Read Ch10 Summary

  • Lab Guide — JAX-RS REST Architecture


    Full CRUD TelemetryResource using embedded Jersey + Grizzly. Verify all 7 endpoint behaviors with Java HttpClient.

    Start Lab


Prerequisites to Continue

New concepts in Phase 3 not seen in Phase 1 or Phase 2

  • Jersey — the JAX-RS 3.1 reference implementation; Grizzly is a lightweight NIO HTTP server used for embedded testing (no app server needed)
  • ResourceConfig — Jersey-specific subclass of Application for programmatic registration of resources and providers
  • UriBuilder — fluent builder for constructing absolute URI strings — used for Location headers in 201 Created responses
  • @BeanParam — bundles multiple parameter annotations (@PathParam, @QueryParam, @HeaderParam) into a single POJO, reducing method signature clutter
  • Richardson Maturity Model — REST quality levels 0–3; Level 3 (HATEOAS) includes hypermedia links in responses

Back to Week 1