Debian Codegraph @

jetty-ee10/jetty-ee10-tests/jetty-ee10-test-quickstart/src/test/resources/test.xml

raw
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_9_3.dtd">
3
4 <!-- ==================================================================
5 Configure and deploy the test web application in $(jetty.home)/webapps/test
6
7 Note. If this file did not exist or used a context path other that /test
8 then the default configuration of jetty.xml would discover the test
9 webapplication with a WebAppDeployer. By specifying a context in this
10 directory, additional configuration may be specified and hot deployments
11 detected.
12 ===================================================================== -->
13
14 <Configure id="webapp" class="org.eclipse.jetty.ee10.webapp.WebAppContext">
15
16 <Set name="contextPath">/test</Set>
17
18 <Call name="getResourceFactory">
19 <Call id="realmResource" name="newResource">
20 <Arg><SystemProperty name="jetty.home" default="."/>/test-standard-realm.properties</Arg>
21 </Call>
22 </Call>
23
24 <Get name="securityHandler">
25 <Set name="loginService">
26 <New class="org.eclipse.jetty.security.HashLoginService">
27 <Set name="name">Test Realm</Set>
28 <Set name="config"><Ref refid="realmResource"/></Set>
29 </New>
30 </Set>
31 <Set name="authenticator">
32 <New class="org.eclipse.jetty.security.authentication.FormAuthenticator">
33 <Set name="alwaysSaveUri">true</Set>
34 </New>
35 </Set>
36 </Get>
37
38 <Set name="parentLoaderPriority">true</Set>
39
40 <!-- Non standard error page mapping -->
41 <!--
42 <Get name="errorHandler">
43 <Call name="addErrorPage">
44 <Arg type="int">500</Arg>
45 <Arg type="int">599</Arg>
46 <Arg type="String">/dump/errorCodeRangeMapping</Arg>
47 </Call>
48 </Get>
49 -->
50
51
52 </Configure>