Skip to content

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.

AI Coding Skills Jetty work emphasizes:

  • Embedded Server bootstrap and graceful shutdown
  • Handlers and/or Jakarta Servlet deployments
  • Clear separation of server wiring and application logic
  • Integration tests over HTTP
Java Notes
21 Preferred for new projects
17 Supported for compatibility

Target a current stable Eclipse Jetty 12.x line with Jakarta EE APIs unless a skill page states otherwise.

  • Construct and configure an embedded Jetty Server
  • Register handlers or servlet contexts
  • Manage lifecycle (start, join/stop, graceful shutdown)
  • Prefer jakarta.servlet APIs over legacy javax.servlet
src/
├── main/
│ ├── java/
│ │ └── com/example/app/
│ │ ├── Application.java
│ │ ├── server/
│ │ │ └── JettyServerFactory.java
│ │ └── handler/
│ └── resources/
└── test/
└── java/
Skill Status
Jetty Bootstrap Planned
Platform Bootstrap skill status
GitHub Copilot Planned
Grok Planned
Claude Code Planned
  • 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.