source: greenstone3/trunk/web/WEB-INF/web.xml@ 14400

Last change on this file since 14400 was 14400, checked in by xiao, 15 years ago

move the class FlaxServlet to a separate directory /flax so that it can be checked out from another repository.

  • Property svn:keywords set to Author Date Id Revision
File size: 10.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<!DOCTYPE web-app
4 PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
5 "http://java.sun.com/dtd/web-app_2_3.dtd">
6
7<!-- this is based on a sample web.xml file provided by
8http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/web.xml.txt
9-->
10<web-app>
11
12
13 <!-- General description of your web application -->
14
15 <display-name>GSDL3</display-name>
16 <description>
17 Greenstone digital library version 3.
18 </description>
19
20
21 <!-- Context initialization parameters that define shared
22 String constants used within your application, which
23 can be customized by the system administrator who is
24 installing your application. The values actually
25 assigned to these parameters can be retrieved in a
26 servlet or JSP page by calling:
27
28 String value =
29 getServletContext().getInitParameter("name");
30
31 where "name" matches the <param-name> element of
32 one of these initialization parameters.
33
34 You can define any number of context initialization
35 parameters, including zero.
36 -->
37
38 <context-param>
39 <param-name>webmaster</param-name>
40 <param-value>greenstone3@list.scms.waikato.ac.nz</param-value>
41 <description>
42 The EMAIL address of the administrator to whom questions
43 and comments about this application should be addressed.
44 </description>
45 </context-param>
46
47
48 <!-- Servlet definitions for the servlets that make up
49 your web application, including initialization
50 parameters. With Tomcat, you can also send requests
51 to servlets not listed here with a request like this:
52
53 http://localhost:8080/{context-path}/servlet/{classname}
54
55 but this usage is not guaranteed to be portable. It also
56 makes relative references to images and other resources
57 required by your servlet more complicated, so defining
58 all of your servlets (and defining a mapping to them with
59 a servlet-mapping element) is recommended.
60
61 Servlet initialization parameters can be retrieved in a
62 servlet or JSP page by calling:
63
64 String value =
65 getServletConfig().getInitParameter("name");
66
67 where "name" matches the <param-name> element of
68 one of these initialization parameters.
69
70 You can define any number of servlets, including zero.
71 -->
72
73 <servlet>
74 <servlet-name>tester</servlet-name>
75 <description>a test servlet</description>
76 <servlet-class>TestServlet</servlet-class>
77 </servlet>
78
79 <servlet>
80 <servlet-name>library</servlet-name>
81 <description>standard gsdl3 library program: uses localsite and the default interface</description>
82 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
83 <init-param>
84 <param-name>library_name</param-name>
85 <param-value>library</param-value>
86 </init-param>
87 <init-param>
88 <param-name>site_name</param-name>
89 <param-value>localsite</param-value>
90 </init-param>
91 <init-param>
92 <param-name>interface_name</param-name>
93 <param-value>default</param-value>
94 </init-param>
95 <init-param>
96 <param-name>default_lang</param-name>
97 <param-value>en</param-value>
98 </init-param>
99 <init-param>
100 <param-name>session_expiration</param-name>
101 <param-value>1800</param-value>
102 </init-param>
103 </servlet>
104
105 <servlet>
106 <servlet-name>flax</servlet-name>
107 <description></description>
108 <servlet-class>org.greenstone.gsdl3.flax.FlaxServlet</servlet-class>
109 <init-param>
110 <param-name>library_name</param-name>
111 <param-value>flax</param-value>
112 </init-param>
113 <init-param>
114 <param-name>site_name</param-name>
115 <param-value>flax</param-value>
116 </init-param>
117 <init-param>
118 <param-name>interface_name</param-name>
119 <param-value>flax</param-value>
120 </init-param>
121 <init-param>
122 <param-name>default_lang</param-name>
123 <param-value>en</param-value>
124 </init-param>
125 <init-param>
126 <param-name>session_expiration</param-name>
127 <param-value>1800</param-value>
128 </init-param>
129 </servlet>
130 <servlet>
131 <servlet-name>gateway</servlet-name>
132 <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description>
133 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
134 <init-param>
135 <param-name>library_name</param-name>
136 <param-value>gateway</param-value>
137 </init-param>
138 <init-param>
139 <param-name>site_name</param-name>
140 <param-value>gateway</param-value>
141 </init-param>
142 <init-param>
143 <param-name>interface_name</param-name>
144 <param-value>default</param-value>
145 </init-param>
146 <init-param>
147 <param-name>default_lang</param-name>
148 <param-value>en</param-value>
149 </init-param>
150 </servlet>
151
152 <servlet>
153 <servlet-name>classic-library</servlet-name>
154 <description>Greenstone 2 lookalike library program: uses localsite with the classic interface</description>
155 <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
156 <init-param>
157 <param-name>library_name</param-name>
158 <param-value>classic</param-value>
159 </init-param>
160 <init-param>
161 <param-name>site_name</param-name>
162 <param-value>localsite</param-value>
163 </init-param>
164 <init-param>
165 <param-name>interface_name</param-name>
166 <param-value>classic</param-value>
167 </init-param>
168 <init-param>
169 <param-name>default_lang</param-name>
170 <param-value>en</param-value>
171 </init-param>
172 <init-param>
173 <param-name>params_class</param-name>
174 <param-value>NZDLParams</param-value>
175 </init-param>
176 </servlet>
177
178 <!-- axis servlets -->
179 <servlet>
180 <servlet-name>AxisServlet</servlet-name>
181 <display-name>Apache-Axis Servlet</display-name>
182 <servlet-class>
183 org.apache.axis.transport.http.AxisServlet
184 </servlet-class>
185 </servlet>
186
187 <servlet>
188 <servlet-name>AdminServlet</servlet-name>
189 <display-name>Axis Admin Servlet</display-name>
190 <servlet-class>
191 org.apache.axis.transport.http.AdminServlet
192 </servlet-class>
193 <load-on-startup>100</load-on-startup>
194 </servlet>
195
196 <servlet>
197 <servlet-name>SOAPMonitorService</servlet-name>
198 <display-name>SOAPMonitorService</display-name>
199 <servlet-class>
200 org.apache.axis.monitor.SOAPMonitorService
201 </servlet-class>
202 <init-param>
203 <param-name>SOAPMonitorPort</param-name>
204 <param-value>5001</param-value>
205 </init-param>
206 <load-on-startup>100</load-on-startup>
207 </servlet>
208<servlet>
209 <servlet-name>oaiserver</servlet-name>
210 <description>an oai servlet</description>
211 <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
212 <init-param>
213 <param-name>default_lang</param-name>
214 <param-value>en</param-value>
215 </init-param>
216 <init-param>
217 <param-name>site_name</param-name>
218 <!-- More than one site name can be specified using the comma separation style: localsite1,localsite2 -->
219 <param-value>localsite</param-value>
220 </init-param>
221</servlet>
222<!--
223-->
224 <!-- Define mappings that are used by the servlet container to
225 translate a particular request URI (context-relative) to a
226 particular servlet. The examples below correspond to the
227 servlet descriptions above. Thus, a request URI like:
228
229 http://localhost:8080/{contextpath}/graph
230
231 will be mapped to the "graph" servlet, while a request like:
232
233 http://localhost:8080/{contextpath}/saveCustomer.do
234
235 will be mapped to the "controller" servlet.
236
237 Note: context path is determined by the servlet container -
238 in Tomcat, specified in server.xml -kjdon
239 You may define any number of servlet mappings, including zero.
240 It is also legal to define more than one mapping for the same
241 servlet, if you wish to.
242 -->
243 <!--
244
245 <servlet-mapping>
246 <servlet-name>controller</servlet-name>
247 <url-pattern>*.do</url-pattern>
248 </servlet-mapping>
249
250 <servlet-mapping>
251 <servlet-name>graph</servlet-name>
252 <url-pattern>/graph</url-pattern>
253 </servlet-mapping>
254 -->
255
256
257<servlet-mapping>
258 <servlet-name>oaiserver</servlet-name>
259 <url-pattern>/oaiserver</url-pattern>
260</servlet-mapping>
261
262<servlet-mapping>
263 <servlet-name>flax</servlet-name>
264 <url-pattern>/flax</url-pattern>
265</servlet-mapping>
266
267 <servlet-mapping>
268 <servlet-name>tester</servlet-name>
269 <url-pattern>/testing</url-pattern>
270 </servlet-mapping>
271
272 <servlet-mapping>
273 <servlet-name>library</servlet-name>
274 <url-pattern>/library</url-pattern>
275 </servlet-mapping>
276
277 <servlet-mapping>
278 <servlet-name>gateway</servlet-name>
279 <url-pattern>/gateway</url-pattern>
280 </servlet-mapping>
281
282 <servlet-mapping>
283 <servlet-name>classic-library</servlet-name>
284 <url-pattern>/classic</url-pattern>
285 </servlet-mapping>
286
287 <!-- axis mappings -->
288 <servlet-mapping>
289 <servlet-name>AxisServlet</servlet-name>
290 <url-pattern>/servlet/AxisServlet</url-pattern>
291 </servlet-mapping>
292
293 <servlet-mapping>
294 <servlet-name>AxisServlet</servlet-name>
295 <url-pattern>*.jws</url-pattern>
296 </servlet-mapping>
297
298 <servlet-mapping>
299 <servlet-name>AxisServlet</servlet-name>
300 <url-pattern>/services/*</url-pattern>
301 </servlet-mapping>
302
303 <!-- uncomment this if you want to use the SOAPMonitorService. You will also
304 need to copy the SOAPMonitorApplet*.class files from
305 gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
306 comms/soap/axis/docs/install.html Appendix for details about how to use this -->
307 <!--
308 <servlet-mapping>
309 <servlet-name>SOAPMonitorService</servlet-name>
310 <url-pattern>/SOAPMonitor</url-pattern>
311 </servlet-mapping>
312 -->
313 <!-- uncomment this if you want the admin servlet -->
314 <!--
315 <servlet-mapping>
316 <servlet-name>AdminServlet</servlet-name>
317 <url-pattern>/servlet/AdminServlet</url-pattern>
318 </servlet-mapping>
319 -->
320
321 <!-- Define the default session timeout for your application,
322 in minutes. From a servlet or JSP page, you can modify
323 the timeout for a particular session dynamically by using
324 HttpSession.getMaxInactiveInterval(). -->
325
326 <session-config>
327 <session-timeout>30</session-timeout> <!-- 30 minutes -->
328 </session-config>
329
330 <!-- axis mime-mappings -->
331 <mime-mapping>
332 <extension>wsdl</extension>
333 <mime-type>text/xml</mime-type>
334 </mime-mapping>
335
336 <mime-mapping>
337 <extension>xsd</extension>
338 <mime-type>text/xml</mime-type>
339 </mime-mapping>
340
341</web-app>
342
343
Note: See TracBrowser for help on using the repository browser.