Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Jetty/Howto/Configure Jetty"
Line 1: | Line 1: | ||
{{Jetty Howto | {{Jetty Howto | ||
|introduction= | |introduction= | ||
− | + | 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 [[Jetty/Tutorial/Embedding_Jetty|Embedding Jetty Tutorial]]). | ||
+ | * Calling the API from jetty XML (see [[Jetty/Reference/jetty.xml_syntax|XML syntax reference]] and [[Jetty/Reference/jetty.xml|jetty.xml reference]]). | ||
+ | * Assemble POJOs from Spring (see the [[Jetty/Tutorial/Embedding_Jetty#File_Server_with_spring|File Server with spring example]]). | ||
+ | * Use the [[Jetty/Feature/Jetty_Maven_Plugin|jetty-maven-plugin]] | ||
− | + | Web applications (aka WARs, webapps and contexts) can be configured either with standard based web.xml, annotations or via calling the jetty API directly (as above). | |
− | + | ||
− | + | |steps= | |
− | | | + | |
− | + | ||
}} | }} |
Revision as of 05:54, 18 September 2009
Introduction
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 or via calling the jetty API directly (as above).