...
Configuring Jetty
...
Overview
A Jetty is configured by dependency injection into the Jetty components. The root component of Jetty is Server, on which you can set an array of Connector instances and an array of Handler instances. Each specific type of connector and handler will have it's own setters and getters for configuration.
...
- Directly calling the API in a java program - see Embedding Jetty
- Calling the API via Jetty XML - see What is jetty.xml, What is jetty-web.xml, What is jetty-env.xml
- Calling the bean-style API via a framework such as swing spring or xbeans - see XBean with Jetty
Jetty XML
All container setup, such as ports to listen on, webapps to deploy, thread pools, security etc is done in a jetty configuration file in xml format. An example of such a file is provided in the distribution as etc/jetty.xml. For more information on this file, see jetty.xml
Additional configuration can be performed on a per webapp basis in a file called jetty-web.xml file placed inside the WEB-INF directory of the webapp. See also jetty-web.xml