Debian Codegraph @

jetty-ee9/jetty-ee9-demos/jetty-ee9-demo-jetty-webapp/src/main/config/modules/demo.d/ee9-demo-jetty.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd">
3
4 <!-- ==================================================================
5 Configure and deploy the test web application
6 ===================================================================== -->
7
8 <Configure id="testWebapp" class="org.eclipse.jetty.ee9.webapp.WebAppContext">
9
10 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
11 <!-- Required minimal context configuration : -->
12 <!-- + contextPath -->
13 <!-- + war OR baseResource -->
14 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
15 <Set name="contextPath">/ee9-test</Set>
16 <Set name="war"><Property name="jetty.webapps" default="." />/ee9-demo-jetty.war
17 </Set>
18
19 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
20 <!-- Optional context configuration -->
21 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
22 <Set name="extractWAR">true</Set>
23 <Set name="copyWebDir">false</Set>
24 <Set name="defaultsDescriptor"><Property name="jetty.home" default="."/>/etc/webdefault-ee9.xml</Set>
25 <Set name="overrideDescriptor"><Property name="jetty.webapps" default="." />/ee9-demo-jetty.d/ee9-demo-jetty-override-web.xml
26 </Set>
27
28 <!-- Enable WebSocket container -->
29 <Call name="setAttribute">
30 <Arg>org.eclipse.jetty.websocket.jakarta</Arg>
31 <Arg type="Boolean">true</Arg>
32 </Call>
33
34 <Get name="coreContextHandler">
35 <Call name="insertHandler">
36 <Arg>
37 <New class="org.eclipse.jetty.server.handler.gzip.GzipHandler">
38 <Set name="minGzipSize">2048</Set>
39 </New>
40 </Arg>
41 </Call>
42 </Get>
43 </Configure>