This is a collection of examples of how to use various features present in the Eclipse Jetty server and Eclipse Jetty client.
There are a few major categories of examples.
Using Embedded Jetty is extremely powerful way to include Jetty in your Java application using Code (instead of configuration) to setup a Jetty server or Jetty client.
Here you will see answers to common questions about how to integrate various features of Jetty, and also how to enable features of 3rd party libraries within Jetty (such as JSP, REST, and CDI).
See embedded/README.md for a breakdown of embedded examples.
The Standalone examples present fully formed ${jetty.base}
directories
that can be used to understand how to configure the jetty module system
and its various components to reach an end goal.
See standalone/README.md for a breakdown of standalone examples.
A collection of various WAR files that can be used to demonstrate how to use web and JVM features in Jetty.
See webapps/README.md for a breakdown of webapp examples.
Branch | Min JDK | EE | Servlet | Namespace | Supported |
---|---|---|---|---|---|
12.0.x | 17 | EE10 | 6.0 | jakarta.servlet |
Yes |
12.0.x | 17 | EE9 | 5.0 | jakarta.servlet |
Yes |
12.0.x | 17 | EE8 | 4.0 | javax.servlet |
Yes |
11.0.x | 11 | EE9 | 5.0 | jakarta.servlet |
No (as of January 2024) See #10485 |
10.0.x | 11 | EE8 | 4.0 | javax.servlet |
No (as of January 2024) See #10485 |
9.4.x | 8 | EE7 | 3.1 | javax.servlet |
No (as of June 2022) See #7958 |