| 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.ee10.webapp.WebAppContext"> |
| 9 |
|
| 10 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 11 |
<!-- Required minimal context configuration : --> |
| 12 |
<!-- + contextPath --> |
| 13 |
<!-- + war OR baseResource --> |
| 14 |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
| 15 |
<Set name="contextPath">/ee10-test</Set> |
| 16 |
<Set name="war"><Property name="jetty.webapps" default="." />/ee10-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-ee10.xml</Set> |
| 25 |
<Set name="overrideDescriptor"><Property name="jetty.webapps" default="." />/ee10-demo-jetty.d/ee10-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 |
<Call name="insertHandler"> |
| 35 |
<Arg> |
| 36 |
<New class="org.eclipse.jetty.server.handler.gzip.GzipHandler"> |
| 37 |
<Set name="minGzipSize">2048</Set> |
| 38 |
</New> |
| 39 |
</Arg> |
| 40 |
</Call> |
| 41 |
</Configure> |