Debian Codegraph @

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

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