Jetty
Jetty coverage focuses on embedded Jetty applications: handlers, Jakarta Servlet APIs, server lifecycle management, and HTTP testing without requiring an external servlet container install.
Framework overview
Section titled “Framework overview”AI Coding Skills Jetty work emphasizes:
- Embedded
Serverbootstrap and graceful shutdown - Handlers and/or Jakarta Servlet deployments
- Clear separation of server wiring and application logic
- Integration tests over HTTP
Supported Java versions
Section titled “Supported Java versions”| Java | Notes |
|---|---|
| 21 | Preferred for new projects |
| 17 | Supported for compatibility |
Supported framework versions
Section titled “Supported framework versions”Target a current stable Eclipse Jetty 12.x line with Jakarta EE APIs unless a skill page states otherwise.
Programming model
Section titled “Programming model”- Construct and configure an embedded Jetty
Server - Register handlers or servlet contexts
- Manage lifecycle (start, join/stop, graceful shutdown)
- Prefer
jakarta.servletAPIs over legacyjavax.servlet
Common project structure
Section titled “Common project structure”src/├── main/│ ├── java/│ │ └── com/example/app/│ │ ├── Application.java│ │ ├── server/│ │ │ └── JettyServerFactory.java│ │ └── handler/│ └── resources/└── test/ └── java/Relevant skills
Section titled “Relevant skills”| Skill | Status |
|---|---|
| Jetty Bootstrap | Planned |
Available examples
Section titled “Available examples”Embedded Jetty ApplicationHandlers, servlet APIs, and graceful shutdown.
Platform availability
Section titled “Platform availability”| Platform | Bootstrap skill status |
|---|---|
| GitHub Copilot | Planned |
| Grok | Planned |
| Claude Code | Planned |
Official documentation
Section titled “Official documentation”Compatibility notes
Section titled “Compatibility notes”- Prefer Jetty 12 + Jakarta namespaces for new skills.
- Always demonstrate graceful shutdown in bootstrap output.
- Keep HTTP tests independent of hardcoded developer machine ports when practical.