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