Jetty configuration is a combination of configuration of the HTTP server, the web container and the web application.
Jetty itself is a collection of Plain Old Java Objects (POJOs) and can be configured in several ways:
- Calling the API from a java program (see the Embedding Jetty Tutorial).
- Calling the API from jetty XML (see XML syntax reference and jetty.xml reference).
- Assemble POJOs from Spring (see the File Server with spring example).
- Use the jetty-maven-plugin
Web applications (aka WARs, webapps and contexts) can be configured either with standard based web.xml, annotations, by calling the jetty API directly (as above) or with a combination of approaches.
See the Jetty Configuration Reference pages.