Debian Codegraph @

jetty-ee10/jetty-ee10-tests/jetty-ee10-test-integration/src/test/resources/webdefault-ee10.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app
3 xmlns="https://jakarta.ee/xml/ns/jakartaee"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5 xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"
6 metadata-complete="false"
7 version="6.0">
8
9 <!-- ===================================================================== -->
10 <!-- This file contains the default descriptor for web applications. -->
11 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
12 <!-- The intent of this descriptor is to include jetty specific or common -->
13 <!-- configuration for all webapps. If a context has a webdefault-ee10.xml -->
14 <!-- descriptor, it is applied before the context's own web.xml file -->
15 <!-- -->
16 <!-- A context may be assigned a default descriptor by calling -->
17 <!-- WebAppContext.setDefaultsDescriptor(String). -->
18 <!-- -->
19 <!-- This file is present in the jetty-webapp.jar, and is used as the -->
20 <!-- defaults descriptor if no other is explicitly set on a context. -->
21 <!-- -->
22 <!-- A copy of this file is also placed into the $JETTY_HOME/etc dir of -->
23 <!-- the distribution, and is referenced by some of the other xml files, -->
24 <!-- eg the jetty-deploy.xml file. -->
25 <!-- ===================================================================== -->
26
27 <description>
28 Default web.xml file.
29 This file is applied to a Web application before its own WEB_INF/web.xml file
30 </description>
31
32 <!-- ==================================================================== -->
33 <!-- Removes static cache of Methods from java.beans.Introspector to -->
34 <!-- ensure webapp classloader can be released on undeploy -->
35 <!-- ==================================================================== -->
36 <listener>
37 <listener-class>org.eclipse.jetty.ee10.servlet.listener.IntrospectorCleaner</listener-class>
38 </listener>
39
40
41 <!-- ==================================================================== -->
42 <!-- Context params to control Session Cookies -->
43 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
44 <!--
45 UNCOMMENT TO ACTIVATE
46 <context-param>
47 <param-name>org.eclipse.jetty.session.SessionDomain</param-name>
48 <param-value>127.0.0.1</param-value>
49 </context-param>
50 <context-param>
51 <param-name>org.eclipse.jetty.session.SessionPath</param-name>
52 <param-value>/</param-value>
53 </context-param>
54 <context-param>
55 <param-name>org.eclipse.jetty.session.MaxAge</param-name>
56 <param-value>-1</param-value>
57 </context-param>
58 -->
59
60 <!-- ==================================================================== -->
61 <!-- The default servlet. -->
62 <!-- This servlet, normally mapped to /, provides the handling for static -->
63 <!-- content, OPTIONS and TRACE methods for the context. -->
64 <!-- The following initParameters are supported: -->
65 <!--
66 * acceptRanges If true, range requests and responses are
67 * supported
68 *
69 * dirAllowed If true, directory listings are returned if no
70 * welcome file is found. Else 403 Forbidden.
71 *
72 * welcomeServlets If true, attempt to dispatch to welcome files
73 * that are servlets, but only after no matching static
74 * resources could be found. If false, then a welcome
75 * file must exist on disk. If "exact", then exact
76 * servlet matches are supported without an existing file.
77 * Default is true.
78 *
79 * This must be false if you want directory listings,
80 * but have index.jsp in your welcome file list.
81 *
82 * redirectWelcome If true, welcome files are redirected rather than
83 * forwarded to.
84 *
85 * gzip If set to true, then static content will be served as
86 * gzip content encoded if a matching resource is
87 * found ending with ".gz"
88 *
89 * baseResource Set to replace the context resource base
90 *
91 * resourceCache If set, this is a context attribute name, which the servlet
92 * will use to look for a shared ResourceCache instance.
93 *
94 * relativeBaseResource
95 * Set with a pathname relative to the base of the
96 * servlet context root. Useful for only serving static content out
97 * of only specific subdirectories.
98 *
99 * stylesheet Set with the location of an optional stylesheet that will be used
100 * to decorate the directory listing html.
101 *
102 * aliases If True, aliases of resources are allowed (eg. symbolic
103 * links and caps variations). May bypass security constraints.
104 *
105 * etags If True, weak etags will be generated and handled.
106 *
107 * maxCacheSize The maximum total size of the cache or 0 for no cache.
108 * maxCachedFileSize The maximum size of a file to cache
109 * maxCachedFiles The maximum number of files to cache
110 *
111 * useFileMappedBuffer
112 * If set to true, it will use mapped file buffers to serve static content
113 * when using an NIO connector. Setting this value to false means that
114 * a direct buffer will be used instead of a mapped file buffer.
115 * This file sets the value to true.
116 *
117 * cacheControl If set, all static content will have this value set as the cache-control
118 * header.
119 *
120 -->
121 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
122 <servlet>
123 <servlet-name>default</servlet-name>
124 <servlet-class>org.eclipse.jetty.ee10.servlet.DefaultServlet</servlet-class>
125 <init-param>
126 <param-name>aliases</param-name>
127 <param-value>false</param-value>
128 </init-param>
129 <init-param>
130 <param-name>acceptRanges</param-name>
131 <param-value>true</param-value>
132 </init-param>
133 <init-param>
134 <param-name>dirAllowed</param-name>
135 <param-value>true</param-value>
136 </init-param>
137 <init-param>
138 <param-name>welcomeServlets</param-name>
139 <param-value>false</param-value>
140 </init-param>
141 <init-param>
142 <param-name>redirectWelcome</param-name>
143 <param-value>false</param-value>
144 </init-param>
145 <init-param>
146 <param-name>maxCacheSize</param-name>
147 <param-value>256000000</param-value>
148 </init-param>
149 <init-param>
150 <param-name>maxCachedFileSize</param-name>
151 <param-value>200000000</param-value>
152 </init-param>
153 <init-param>
154 <param-name>maxCachedFiles</param-name>
155 <param-value>2048</param-value>
156 </init-param>
157 <init-param>
158 <param-name>gzip</param-name>
159 <param-value>false</param-value>
160 </init-param>
161 <init-param>
162 <param-name>etags</param-name>
163 <param-value>false</param-value>
164 </init-param>
165 <init-param>
166 <param-name>useFileMappedBuffer</param-name>
167 <param-value>true</param-value>
168 </init-param>
169 <!--
170 <init-param>
171 <param-name>resourceCache</param-name>
172 <param-value>resourceCache</param-value>
173 </init-param>
174 -->
175 <!--
176 <init-param>
177 <param-name>cacheControl</param-name>
178 <param-value>max-age=3600,public</param-value>
179 </init-param>
180 -->
181 <load-on-startup>0</load-on-startup>
182 </servlet>
183
184 <servlet-mapping>
185 <servlet-name>default</servlet-name>
186 <url-pattern>/</url-pattern>
187 </servlet-mapping>
188
189
190 <!-- ==================================================================== -->
191 <!-- JSP Servlet -->
192 <!-- This is the jasper JSP servlet. -->
193 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
194 <!-- The JSP page compiler and execution servlet, which is the mechanism -->
195 <!-- used by the jsp container to support JSP pages. Traditionally, -->
196 <!-- this servlet is mapped to URL pattern "*.jsp". This servlet -->
197 <!-- supports the following initialization parameters (default values -->
198 <!-- are in square brackets): -->
199 <!-- -->
200 <!-- checkInterval If development is false and reloading is true, -->
201 <!-- background compiles are enabled. checkInterval -->
202 <!-- is the time in seconds between checks to see -->
203 <!-- if a JSP page needs to be recompiled. [300] -->
204 <!-- -->
205 <!-- compiler Which compiler Ant should use to compile JSP -->
206 <!-- pages. See the Ant documentation for more -->
207 <!-- information. [javac] -->
208 <!-- -->
209 <!-- classdebuginfo Should the class file be compiled with -->
210 <!-- debugging information? [true] -->
211 <!-- -->
212 <!-- classpath What class path should I use while compiling -->
213 <!-- generated servlets? [Created dynamically -->
214 <!-- based on the current web application] -->
215 <!-- Set to ? to make the container explicitly set -->
216 <!-- this parameter. -->
217 <!-- -->
218 <!-- development Is Jasper used in development mode (will check -->
219 <!-- for JSP modification on every access)? [true] -->
220 <!-- -->
221 <!-- enablePooling Determines whether tag handler pooling is -->
222 <!-- enabled [true] -->
223 <!-- -->
224 <!-- fork Tell Ant to fork compiles of JSP pages so that -->
225 <!-- a separate JVM is used for JSP page compiles -->
226 <!-- from the one Tomcat is running in. [true] -->
227 <!-- -->
228 <!-- ieClassId The class-id value to be sent to Internet -->
229 <!-- Explorer when using <jsp:plugin> tags. -->
230 <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
231 <!-- -->
232 <!-- javaEncoding Java file encoding to use for generating java -->
233 <!-- source files. [UTF-8] -->
234 <!-- -->
235 <!-- keepgenerated Should we keep the generated Java source code -->
236 <!-- for each page instead of deleting it? [true] -->
237 <!-- -->
238 <!-- logVerbosityLevel The level of detailed messages to be produced -->
239 <!-- by this servlet. Increasing levels cause the -->
240 <!-- generation of more messages. Valid values are -->
241 <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
242 <!-- [WARNING] -->
243 <!-- -->
244 <!-- mappedfile Should we generate static content with one -->
245 <!-- print statement per input line, to ease -->
246 <!-- debugging? [false] -->
247 <!-- -->
248 <!-- -->
249 <!-- reloading Should Jasper check for modified JSPs? [true] -->
250 <!-- -->
251 <!-- suppressSmap Should the generation of SMAP info for JSR45 -->
252 <!-- debugging be suppressed? [false] -->
253 <!-- -->
254 <!-- dumpSmap Should the SMAP info for JSR45 debugging be -->
255 <!-- dumped to a file? [false] -->
256 <!-- False if suppressSmap is true -->
257 <!-- -->
258 <!-- scratchdir What scratch directory should we use when -->
259 <!-- compiling JSP pages? [default work directory -->
260 <!-- for the current web application] -->
261 <!-- -->
262 <!-- tagpoolMaxSize The maximum tag handler pool size [5] -->
263 <!-- -->
264 <!-- xpoweredBy Determines whether X-Powered-By response -->
265 <!-- header is added by generated servlet [false] -->
266 <!-- -->
267 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
268 <servlet id="jsp">
269 <servlet-name>jsp</servlet-name>
270 <servlet-class>org.eclipse.jetty.jsp.JettyJspServlet</servlet-class>
271 <init-param>
272 <param-name>logVerbosityLevel</param-name>
273 <param-value>DEBUG</param-value>
274 </init-param>
275 <init-param>
276 <param-name>fork</param-name>
277 <param-value>false</param-value>
278 </init-param>
279 <init-param>
280 <param-name>xpoweredBy</param-name>
281 <param-value>false</param-value>
282 </init-param>
283 <init-param>
284 <param-name>compilerTargetVM</param-name>
285 <param-value>1.7</param-value>
286 </init-param>
287 <init-param>
288 <param-name>compilerSourceVM</param-name>
289 <param-value>1.7</param-value>
290 </init-param>
291 <!--
292 <init-param>
293 <param-name>classpath</param-name>
294 <param-value>?</param-value>
295 </init-param>
296 -->
297 <load-on-startup>0</load-on-startup>
298 </servlet>
299
300 <servlet-mapping>
301 <servlet-name>jsp</servlet-name>
302 <url-pattern>*.jsp</url-pattern>
303 <url-pattern>*.jspf</url-pattern>
304 <url-pattern>*.jspx</url-pattern>
305 <url-pattern>*.xsp</url-pattern>
306 <url-pattern>*.JSP</url-pattern>
307 <url-pattern>*.JSPF</url-pattern>
308 <url-pattern>*.JSPX</url-pattern>
309 <url-pattern>*.XSP</url-pattern>
310 </servlet-mapping>
311
312
313 <!-- ==================================================================== -->
314 <!-- Default session configuration -->
315 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
316 <session-config>
317 <session-timeout>30</session-timeout>
318 </session-config>
319
320 <!-- ==================================================================== -->
321 <!-- Default MIME mappings -->
322 <!-- The default MIME mappings are provided by the mime.properties -->
323 <!-- resource in the jetty-http.jar file. Additional or modified -->
324 <!-- mappings may be specified here -->
325 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
326 <!-- UNCOMMENT TO ACTIVATE
327 <mime-mapping>
328 <extension>mysuffix</extension>
329 <mime-type>mymime/type</mime-type>
330 </mime-mapping>
331 -->
332
333 <!-- ==================================================================== -->
334 <!-- Default welcome files -->
335 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
336 <welcome-file-list>
337 <welcome-file>index.html</welcome-file>
338 <welcome-file>index.htm</welcome-file>
339 <welcome-file>index.jsp</welcome-file>
340 </welcome-file-list>
341
342 <!-- ==================================================================== -->
343 <!-- Default locale encodings -->
344 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
345 <locale-encoding-mapping-list>
346 <locale-encoding-mapping>
347 <locale>ar</locale>
348 <encoding>ISO-8859-6</encoding>
349 </locale-encoding-mapping>
350 <locale-encoding-mapping>
351 <locale>be</locale>
352 <encoding>ISO-8859-5</encoding>
353 </locale-encoding-mapping>
354 <locale-encoding-mapping>
355 <locale>bg</locale>
356 <encoding>ISO-8859-5</encoding>
357 </locale-encoding-mapping>
358 <locale-encoding-mapping>
359 <locale>ca</locale>
360 <encoding>ISO-8859-1</encoding>
361 </locale-encoding-mapping>
362 <locale-encoding-mapping>
363 <locale>cs</locale>
364 <encoding>ISO-8859-2</encoding>
365 </locale-encoding-mapping>
366 <locale-encoding-mapping>
367 <locale>da</locale>
368 <encoding>ISO-8859-1</encoding>
369 </locale-encoding-mapping>
370 <locale-encoding-mapping>
371 <locale>de</locale>
372 <encoding>ISO-8859-1</encoding>
373 </locale-encoding-mapping>
374 <locale-encoding-mapping>
375 <locale>el</locale>
376 <encoding>ISO-8859-7</encoding>
377 </locale-encoding-mapping>
378 <locale-encoding-mapping>
379 <locale>en</locale>
380 <encoding>ISO-8859-1</encoding>
381 </locale-encoding-mapping>
382 <locale-encoding-mapping>
383 <locale>es</locale>
384 <encoding>ISO-8859-1</encoding>
385 </locale-encoding-mapping>
386 <locale-encoding-mapping>
387 <locale>et</locale>
388 <encoding>ISO-8859-1</encoding>
389 </locale-encoding-mapping>
390 <locale-encoding-mapping>
391 <locale>fi</locale>
392 <encoding>ISO-8859-1</encoding>
393 </locale-encoding-mapping>
394 <locale-encoding-mapping>
395 <locale>fr</locale>
396 <encoding>ISO-8859-1</encoding>
397 </locale-encoding-mapping>
398 <locale-encoding-mapping>
399 <locale>hr</locale>
400 <encoding>ISO-8859-2</encoding>
401 </locale-encoding-mapping>
402 <locale-encoding-mapping>
403 <locale>hu</locale>
404 <encoding>ISO-8859-2</encoding>
405 </locale-encoding-mapping>
406 <locale-encoding-mapping>
407 <locale>is</locale>
408 <encoding>ISO-8859-1</encoding>
409 </locale-encoding-mapping>
410 <locale-encoding-mapping>
411 <locale>it</locale>
412 <encoding>ISO-8859-1</encoding>
413 </locale-encoding-mapping>
414 <locale-encoding-mapping>
415 <locale>iw</locale>
416 <encoding>ISO-8859-8</encoding>
417 </locale-encoding-mapping>
418 <locale-encoding-mapping>
419 <locale>ja</locale>
420 <encoding>Shift_JIS</encoding>
421 </locale-encoding-mapping>
422 <locale-encoding-mapping>
423 <locale>ko</locale>
424 <encoding>EUC-KR</encoding>
425 </locale-encoding-mapping>
426 <locale-encoding-mapping>
427 <locale>lt</locale>
428 <encoding>ISO-8859-2</encoding>
429 </locale-encoding-mapping>
430 <locale-encoding-mapping>
431 <locale>lv</locale>
432 <encoding>ISO-8859-2</encoding>
433 </locale-encoding-mapping>
434 <locale-encoding-mapping>
435 <locale>mk</locale>
436 <encoding>ISO-8859-5</encoding>
437 </locale-encoding-mapping>
438 <locale-encoding-mapping>
439 <locale>nl</locale>
440 <encoding>ISO-8859-1</encoding>
441 </locale-encoding-mapping>
442 <locale-encoding-mapping>
443 <locale>no</locale>
444 <encoding>ISO-8859-1</encoding>
445 </locale-encoding-mapping>
446 <locale-encoding-mapping>
447 <locale>pl</locale>
448 <encoding>ISO-8859-2</encoding>
449 </locale-encoding-mapping>
450 <locale-encoding-mapping>
451 <locale>pt</locale>
452 <encoding>ISO-8859-1</encoding>
453 </locale-encoding-mapping>
454 <locale-encoding-mapping>
455 <locale>ro</locale>
456 <encoding>ISO-8859-2</encoding>
457 </locale-encoding-mapping>
458 <locale-encoding-mapping>
459 <locale>ru</locale>
460 <encoding>ISO-8859-5</encoding>
461 </locale-encoding-mapping>
462 <locale-encoding-mapping>
463 <locale>sh</locale>
464 <encoding>ISO-8859-5</encoding>
465 </locale-encoding-mapping>
466 <locale-encoding-mapping>
467 <locale>sk</locale>
468 <encoding>ISO-8859-2</encoding>
469 </locale-encoding-mapping>
470 <locale-encoding-mapping>
471 <locale>sl</locale>
472 <encoding>ISO-8859-2</encoding>
473 </locale-encoding-mapping>
474 <locale-encoding-mapping>
475 <locale>sq</locale>
476 <encoding>ISO-8859-2</encoding>
477 </locale-encoding-mapping>
478 <locale-encoding-mapping>
479 <locale>sr</locale>
480 <encoding>ISO-8859-5</encoding>
481 </locale-encoding-mapping>
482 <locale-encoding-mapping>
483 <locale>sv</locale>
484 <encoding>ISO-8859-1</encoding>
485 </locale-encoding-mapping>
486 <locale-encoding-mapping>
487 <locale>tr</locale>
488 <encoding>ISO-8859-9</encoding>
489 </locale-encoding-mapping>
490 <locale-encoding-mapping>
491 <locale>uk</locale>
492 <encoding>ISO-8859-5</encoding>
493 </locale-encoding-mapping>
494 <locale-encoding-mapping>
495 <locale>zh</locale>
496 <encoding>GB2312</encoding>
497 </locale-encoding-mapping>
498 <locale-encoding-mapping>
499 <locale>zh_TW</locale>
500 <encoding>Big5</encoding>
501 </locale-encoding-mapping>
502 </locale-encoding-mapping-list>
503
504 <!-- ==================================================================== -->
505 <!-- Disable TRACE method with security constraint -->
506 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
507 <security-constraint>
508 <web-resource-collection>
509 <web-resource-name>Disable TRACE</web-resource-name>
510 <url-pattern>/</url-pattern>
511 <http-method>TRACE</http-method>
512 </web-resource-collection>
513 <auth-constraint/>
514 </security-constraint>
515 <security-constraint>
516 <web-resource-collection>
517 <web-resource-name>Enable everything but TRACE</web-resource-name>
518 <url-pattern>/</url-pattern>
519 <http-method-omission>TRACE</http-method-omission>
520 </web-resource-collection>
521 </security-constraint>
522
523 </web-app>
524