source: gs3-extensions/atea-nlp-tools/trunk/src/koreromaori-proxy/src/main/webapp/WEB-INF/web.xml@ 35247

Last change on this file since 35247 was 35247, checked in by davidb, 3 years ago

Use correct web 3.0 deployment descriptors
Add log4j web APIs and setup for servlets

File size: 3.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<web-app xmlns="http://java.sun.com/xml/ns/javaee"
4 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
6 http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
7 version="3.0">
8
9 <!-- General description of your web application -->
10 <display-name>Korero Maori TTS ASR API Proxy</display-name>
11 <description>
12 A servlet that hosts a proxy for the speech-to-text ASR API of https://koreromaori.io/
13 </description>
14
15 <!-- Context initialization parameters that define shared
16 String constants used within your application, which
17 can be customized by the system administrator who is
18 installing your application. The values actually
19 assigned to these parameters can be retrieved in a
20 servlet or JSP page by calling:
21
22 String value =
23 getServletContext().getInitParameter("name");
24
25 where "name" matches the <param-name> element of
26 one of these initialization parameters.
27
28 You can define any number of context initialization
29 parameters, including zero.
30 -->
31
32 <!-- Servlet definitions for the servlets that make up
33 your web application, including initialization
34 parameters. With Tomcat, you can also send requests
35 to servlets not listed here with a request like this:
36
37 http://localhost:8080/{context-path}/servlet/{classname}
38
39 but this usage is not guaranteed to be portable. It also
40 makes relative references to images and other resources
41 required by your servlet more complicated, so defining
42 all of your servlets (and defining a mapping to them with
43 a servlet-mapping element) is recommended.
44
45 Servlet initialization parameters can be retrieved in a
46 servlet or JSP page by calling:
47
48 String value =
49 getServletConfig().getInitParameter("name");
50
51 where "name" matches the <param-name> element of
52 one of these initialization parameters.
53
54 You can define any number of servlets, including zero.
55 -->
56
57 <servlet>
58 <servlet-name>koreroMaoriTranscribe</servlet-name>
59 <servlet-class>org.atea.nlptools.koreromaoriinterface.TranscriptionServlet</servlet-class>
60 <load-on-startup>0</load-on-startup>
61 </servlet>
62
63 <!-- Define mappings that are used by the servlet container to
64 translate a particular request URI (context-relative) to a
65 particular servlet. The examples below correspond to the
66 servlet descriptions above. Thus, a request URI like:
67
68 http://localhost:8080/{contextpath}/graph
69
70 will be mapped to the "graph" servlet, while a request like:
71
72 http://localhost:8080/{contextpath}/saveCustomer.do
73
74 will be mapped to the "controller" servlet.
75
76 You may define any number of servlet mappings, including zero.
77 It is also legal to define more than one mapping for the same
78 servlet, if you wish to.
79 -->
80
81 <servlet-mapping>
82 <servlet-name>koreroMaoriTranscribe</servlet-name>
83 <url-pattern>/transcribe</url-pattern>
84 </servlet-mapping>
85
86 <!-- Define the default session timeout for your application,
87 in minutes. From a servlet or JSP page, you can modify
88 the timeout for a particular session dynamically by using
89 HttpSession.getMaxInactiveInterval(). -->
90
91 <session-config>
92 <session-timeout>30</session-timeout> <!-- 30 minutes -->
93 </session-config>
94
95 <welcome-file-list>
96 <welcome-file>unauthorised.html</welcome-file>
97 </welcome-file-list>
98</web-app>
Note: See TracBrowser for help on using the repository browser.