root/greenstone3/trunk/web/WEB-INF/web.xml @ 16863

Revision 16863, 10.8 KB (checked in by kjdon, 11 years ago)

classic interface renamed to gs2

  • Property svn:keywords set to Author Date Id Revision
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 
80   <servlet>
81    <servlet-name>dev</servlet-name>
82    <description>A new skin engine still in development based on the standard gsdl3 library program</description>
83    <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
84    <init-param>
85      <param-name>library_name</param-name>
86      <param-value>dev</param-value>
87    </init-param>
88    <init-param>
89      <param-name>site_name</param-name>
90      <param-value>localsite</param-value>
91    </init-param>
92    <init-param>
93      <param-name>interface_name</param-name>
94      <param-value>default</param-value>
95    </init-param>
96    <init-param>
97      <param-name>receptionist_class</param-name>
98      <param-value>SkinnedReceptionist</param-value>
99    </init-param>
100    <init-param>
101      <param-name>default_lang</param-name>
102      <param-value>en</param-value>
103    </init-param>
104  </servlet>
105 
106  <servlet>
107    <servlet-name>gs2-library</servlet-name>
108    <description>Greenstone 2 lookalike library program: uses localsite with the gs2 interface</description>
109    <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
110    <init-param>
111      <param-name>library_name</param-name>
112      <param-value>library</param-value>
113    </init-param>
114    <init-param>
115      <param-name>site_name</param-name>
116      <param-value>localsite</param-value>
117    </init-param>
118    <init-param>
119      <param-name>interface_name</param-name>
120      <param-value>gs2</param-value>
121    </init-param>
122    <init-param>
123      <param-name>default_lang</param-name>
124      <param-value>en</param-value>
125    </init-param>
126    <init-param>
127      <param-name>session_expiration</param-name>
128      <param-value>1800</param-value>
129    </init-param>
130    <init-param>
131      <param-name>params_class</param-name>
132      <param-value>GS2Params</param-value>
133    </init-param>
134  </servlet>
135 
136  <servlet>
137    <servlet-name>gateway</servlet-name>
138    <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description>
139    <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
140    <init-param>
141      <param-name>library_name</param-name>
142      <param-value>gateway</param-value>
143    </init-param>
144    <init-param>
145      <param-name>site_name</param-name>
146      <param-value>gateway</param-value>
147    </init-param>
148    <init-param>
149      <param-name>interface_name</param-name>
150      <param-value>default</param-value>
151    </init-param>
152    <init-param>
153      <param-name>default_lang</param-name>
154      <param-value>en</param-value>
155    </init-param>
156  </servlet>
157 
158  <servlet>
159    <servlet-name>gs3-library</servlet-name>
160    <description>standard gsdl3 library program: uses localsite and the default interface</description>
161    <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
162    <init-param>
163      <param-name>library_name</param-name>
164      <param-value>gs3library</param-value>
165    </init-param>
166    <init-param>
167      <param-name>site_name</param-name>
168      <param-value>localsite</param-value>
169    </init-param>
170    <init-param>
171      <param-name>interface_name</param-name>
172      <param-value>default</param-value>
173    </init-param>
174    <init-param>
175      <param-name>default_lang</param-name>
176      <param-value>en</param-value>
177    </init-param>
178  </servlet>
179
180  <!-- axis servlets -->
181  <servlet>
182    <servlet-name>AxisServlet</servlet-name>
183    <display-name>Apache-Axis Servlet</display-name>
184    <servlet-class>
185        org.apache.axis.transport.http.AxisServlet
186    </servlet-class>
187  </servlet>
188
189  <servlet>
190    <servlet-name>AdminServlet</servlet-name>
191    <display-name>Axis Admin Servlet</display-name>
192    <servlet-class>
193        org.apache.axis.transport.http.AdminServlet
194    </servlet-class>
195    <load-on-startup>100</load-on-startup>
196  </servlet>
197
198  <servlet>
199    <servlet-name>SOAPMonitorService</servlet-name>
200    <display-name>SOAPMonitorService</display-name>
201    <servlet-class>
202        org.apache.axis.monitor.SOAPMonitorService
203    </servlet-class>
204    <init-param>
205      <param-name>SOAPMonitorPort</param-name>
206      <param-value>5001</param-value>
207    </init-param>
208    <load-on-startup>100</load-on-startup>
209  </servlet>
210<servlet>
211         <servlet-name>oaiserver</servlet-name>
212     <description>an oai servlet</description>
213         <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
214         <init-param>
215           <param-name>default_lang</param-name>
216           <param-value>en</param-value>
217         </init-param>
218         <init-param>
219           <param-name>site_name</param-name>
220           <!-- More than one site name can be specified using the comma separation style: localsite1,localsite2 -->
221           <param-value>localsite</param-value>
222         </init-param>
223</servlet>
224<!--
225--> 
226    <!-- Define mappings that are used by the servlet container to
227         translate a particular request URI (context-relative) to a
228         particular servlet.  The examples below correspond to the
229         servlet descriptions above.  Thus, a request URI like:
230
231           http://localhost:8080/{contextpath}/graph
232
233         will be mapped to the "graph" servlet, while a request like:
234
235           http://localhost:8080/{contextpath}/saveCustomer.do
236
237         will be mapped to the "controller" servlet.
238
239     Note: context path is determined by the servlet container -
240     in Tomcat, specified in server.xml -kjdon
241         You may define any number of servlet mappings, including zero.
242         It is also legal to define more than one mapping for the same
243         servlet, if you wish to.
244    -->
245    <!--
246   
247    <servlet-mapping>
248      <servlet-name>controller</servlet-name>
249      <url-pattern>*.do</url-pattern>
250    </servlet-mapping>
251
252    <servlet-mapping>
253      <servlet-name>graph</servlet-name>
254      <url-pattern>/graph</url-pattern>
255    </servlet-mapping>
256    -->
257   
258
259<!--There is no need for this mapping, I think -->
260<servlet-mapping>
261      <servlet-name>oaiserver</servlet-name>
262      <url-pattern>/oaiserver</url-pattern>
263</servlet-mapping>
264
265  <servlet-mapping>
266    <servlet-name>tester</servlet-name>
267    <url-pattern>/testing</url-pattern>
268  </servlet-mapping>
269 
270  <servlet-mapping>
271    <servlet-name>dev</servlet-name>
272    <url-pattern>/dev</url-pattern>
273  </servlet-mapping>
274  <servlet-mapping>
275    <servlet-name>gs2-library</servlet-name>
276    <url-pattern>/library</url-pattern>
277  </servlet-mapping>
278 
279  <servlet-mapping>
280    <servlet-name>gateway</servlet-name>
281    <url-pattern>/gateway</url-pattern>
282  </servlet-mapping>
283 
284  <servlet-mapping>
285    <servlet-name>gs3-library</servlet-name>
286    <url-pattern>/gs3library</url-pattern>
287  </servlet-mapping>
288 
289  <!-- axis mappings -->
290  <servlet-mapping>
291    <servlet-name>AxisServlet</servlet-name>
292    <url-pattern>/servlet/AxisServlet</url-pattern>
293  </servlet-mapping>
294
295  <servlet-mapping>
296    <servlet-name>AxisServlet</servlet-name>
297    <url-pattern>*.jws</url-pattern>
298  </servlet-mapping>
299
300  <servlet-mapping>
301    <servlet-name>AxisServlet</servlet-name>
302    <url-pattern>/services/*</url-pattern>
303  </servlet-mapping>
304
305  <!-- uncomment this if you want to use the SOAPMonitorService. You will also
306  need to copy the SOAPMonitorApplet*.class files from
307  gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
308  comms/soap/axis/docs/install.html Appendix for details about how to use this -->
309  <!--
310  <servlet-mapping>
311    <servlet-name>SOAPMonitorService</servlet-name>
312    <url-pattern>/SOAPMonitor</url-pattern>
313  </servlet-mapping>
314  -->
315  <!-- uncomment this if you want the admin servlet -->
316  <!--
317  <servlet-mapping>
318    <servlet-name>AdminServlet</servlet-name>
319    <url-pattern>/servlet/AdminServlet</url-pattern>
320  </servlet-mapping>
321  -->
322
323  <!-- Define the default session timeout for your application,
324  in minutes.  From a servlet or JSP page, you can modify
325  the timeout for a particular session dynamically by using
326  HttpSession.getMaxInactiveInterval(). -->
327
328  <session-config>
329    <session-timeout>30</session-timeout>    <!-- 30 minutes -->
330  </session-config>
331
332  <!-- axis mime-mappings -->
333  <mime-mapping>
334    <extension>wsdl</extension>
335    <mime-type>text/xml</mime-type>
336  </mime-mapping>
337 
338  <mime-mapping>
339    <extension>xsd</extension>
340    <mime-type>text/xml</mime-type>
341  </mime-mapping>
342 
343</web-app>
344
345
Note: See TracBrowser for help on using the browser.