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,Responsebuilder, JAX-RS client API, Server-Sent Events intro. -
Lab Guide — JAX-RS REST Architecture
Full CRUD
TelemetryResourceusing embedded Jersey + Grizzly. Verify all 7 endpoint behaviors with JavaHttpClient.
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 ofApplicationfor programmatic registration of resources and providersUriBuilder— fluent builder for constructing absolute URI strings — used forLocationheaders 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