source: trunk/config/dist/web.xml @ 4508

Last change on this file since 4508 was 4508, checked in by Jari Häkkinen, 13 years ago

Addresses #1106. Missed to change reference wherefrom retrive GPLv3 license text. And some other changes.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 7.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE web-app
3    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
4    "http://java.sun.com/dtd/web-app_2_3.dtd">
5<!--
6  $Id: web.xml 4508 2008-09-11 20:00:35Z jari $
7
8  Copyright (C) 2006, 2007 Nicklas Nordborg
9
10  This file is part of BASE - BioArray Software Environment.
11  Available at http://base.thep.lu.se/
12
13  BASE is free software; you can redistribute it and/or
14  modify it under the terms of the GNU General Public License
15  as published by the Free Software Foundation; either version 3
16  of the License, or (at your option) any later version.
17
18  BASE is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  GNU General Public License for more details.
22
23  You should have received a copy of the GNU General Public License
24  along with BASE. If not, see <http://www.gnu.org/licenses/>.
25-->
26
27<web-app>
28  <display-name>BASE</display-name>
29  <description>
30    The BASE web application.
31  </description>
32 
33  <error-page>
34    <exception-type>java.lang.Throwable</exception-type>
35    <location>/exception/exception.jsp</location>
36  </error-page>
37 
38  <!--
39    If BASE Javascript encounters an URL that is longer than
40    specified by this setting when assigning it to for example
41    location.href = url, BASE will instead try to rewrite the document
42    to generate a POST request instead. This is to avoid problem with
43    web servers that doesn't accept URL:s longer than a specified size
44    For example, Apache has a default max length of 8190. If this setting
45    is 0, the rewrite functionality is disabled.
46  -->
47  <context-param>
48    <param-name>max-url-length</param-name>
49    <param-value>8000</param-value>
50  </context-param>
51 
52  <!--
53    BASE startup and shutdown servlet;
54    should be configured to load on startup as the first servlet
55  -->
56  <servlet>
57    <servlet-name>BASE</servlet-name>
58    <servlet-class>net.sf.basedb.clients.web.servlet.StartStopServlet</servlet-class>
59    <load-on-startup>1</load-on-startup>
60  </servlet>
61 
62  <!-- The View servlet used to download files in view mode -->
63  <servlet>
64    <servlet-name>view</servlet-name>
65    <servlet-class>
66      net.sf.basedb.clients.web.servlet.Download
67    </servlet-class>
68    <init-param>
69      <param-name>default_mime_type</param-name>
70      <param-value>text/plain</param-value>
71    </init-param>
72    <init-param>
73      <param-name>use_path_info</param-name>
74      <param-value>false</param-value>
75    </init-param>
76  </servlet>
77  <servlet-mapping>
78    <servlet-name>view</servlet-name>
79    <url-pattern>/filemanager/files/view/*</url-pattern>
80  </servlet-mapping>
81
82  <!-- The Download servlet used to download files in download mode -->
83  <servlet>
84    <servlet-name>download</servlet-name>
85    <servlet-class>
86      net.sf.basedb.clients.web.servlet.Download
87    </servlet-class>
88    <init-param>
89      <param-name>default_mime_type</param-name>
90      <param-value>text/plain</param-value>
91    </init-param>
92    <init-param>
93      <param-name>download</param-name>
94      <param-value>true</param-value>
95    </init-param>
96    <init-param>
97      <param-name>use_path_info</param-name>
98      <param-value>false</param-value>
99    </init-param>
100  </servlet>
101  <servlet-mapping>
102    <servlet-name>download</servlet-name>
103    <url-pattern>/filemanager/files/download/*</url-pattern>
104  </servlet-mapping>
105
106
107  <!-- The SpotImage servlet used to view spot images in a raw bioassay -->
108  <servlet>
109    <servlet-name>spotimage</servlet-name>
110    <servlet-class>
111      net.sf.basedb.clients.web.servlet.ViewSpotImage
112    </servlet-class>
113  </servlet>
114  <servlet-mapping>
115    <servlet-name>spotimage</servlet-name>
116    <url-pattern>/views/rawbioassays/rawdata/spotimage/*</url-pattern>
117  </servlet-mapping>
118
119  <!-- The Generic PlotServlet for the HTML plot tool -->
120  <servlet>
121    <servlet-name>plotter</servlet-name>
122    <servlet-class>
123      net.sf.basedb.clients.web.servlet.PlotServlet
124    </servlet-class>
125    <init-param>
126      <param-name>maxWidth</param-name>
127      <param-value>1000</param-value>
128    </init-param>
129    <init-param>
130      <param-name>maxHeight</param-name>
131      <param-value>800</param-value>
132    </init-param>
133    <init-param>
134      <param-name>defaultWidth</param-name>
135      <param-value>600</param-value>
136    </init-param>
137    <init-param>
138      <param-name>defaultHeight</param-name>
139      <param-value>400</param-value>
140    </init-param>
141    <init-param>
142      <param-name>defaultFormat</param-name>
143      <param-value>png</param-value>
144    </init-param>
145  </servlet>
146  <servlet-mapping>
147    <servlet-name>plotter</servlet-name>
148    <url-pattern>/views/experiments/plotter/plot</url-pattern>
149  </servlet-mapping>
150
151  <!-- Axis2 servlets for web services -->
152  <servlet>
153    <servlet-name>AxisServlet</servlet-name>
154    <display-name>Apache-Axis Servlet</display-name>
155    <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
156    <load-on-startup>3</load-on-startup>
157  </servlet>
158  <servlet>
159    <servlet-name>AxisRESTServlet</servlet-name>
160    <display-name>Apache-Axis Servlet (REST)</display-name>
161    <servlet-class>org.apache.axis2.transport.http.AxisRESTServlet</servlet-class>
162  </servlet>
163  <servlet-mapping>
164    <servlet-name>AxisRESTServlet</servlet-name>
165    <url-pattern>/rest/*</url-pattern>
166  </servlet-mapping>
167  <servlet-mapping>
168    <servlet-name>AxisServlet</servlet-name>
169    <url-pattern>/services/*</url-pattern>
170  </servlet-mapping>
171 
172  <!-- Extensions servlet for managing extensions to the web client -->
173  <servlet>
174    <servlet-name>ExtensionsServlet</servlet-name>
175    <display-name>Web client extensions manager</display-name>
176    <servlet-class>net.sf.basedb.clients.web.servlet.ExtensionsServlet</servlet-class>
177    <load-on-startup>2</load-on-startup>
178  </servlet>
179  <servlet-mapping>
180    <servlet-name>ExtensionsServlet</servlet-name>
181    <url-pattern>*.servlet</url-pattern>
182  </servlet-mapping>
183 
184  <!-- Mapping *.xjsp files to a custom JSP compiler that adds extension JAR file to classpath -->
185  <!-- EXPERIMENTAL!! -->
186    <servlet>
187        <servlet-name>xjsp</servlet-name>
188        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
189        <init-param>
190            <param-name>fork</param-name>
191            <param-value>false</param-value>
192        </init-param>
193        <init-param>
194          <param-name>compilerClassName</param-name>
195          <param-value>net.sf.basedb.clients.web.extensions.XJspCompiler</param-value>
196        </init-param>
197    </servlet>
198    <servlet-mapping>
199        <servlet-name>xjsp</servlet-name>
200        <url-pattern>*.xjsp</url-pattern>
201    </servlet-mapping>
202
203 
204  <!-- The CompileAll servlet used to compile all JSP pages -->
205  <!-- EXPERIMENTAL!! -->
206  <!--
207  <servlet>
208    <servlet-name>compile</servlet-name>
209    <servlet-class>
210      net.sf.basedb.clients.web.servlet.CompileAll
211    </servlet-class>
212  </servlet>
213  <servlet-mapping>
214    <servlet-name>compile</servlet-name>
215    <url-pattern>/compile</url-pattern>
216  </servlet-mapping>
217  -->
218
219  <!-- A filter that sets the character encoding on all *.jsp and *.xjsp files -->
220  <filter>
221    <filter-name>characterEncoding</filter-name>
222    <filter-class>net.sf.basedb.clients.web.servlet.CharacterEncodingFilter</filter-class>
223    <init-param>
224      <param-name>characterEncoding</param-name>
225      <param-value>UTF-8</param-value>
226    </init-param>
227  </filter>
228  <filter-mapping>
229    <filter-name>characterEncoding</filter-name>
230    <url-pattern>*.jsp</url-pattern>
231  </filter-mapping>
232  <filter-mapping>
233    <filter-name>characterEncoding</filter-name>
234    <url-pattern>*.xjsp</url-pattern>
235  </filter-mapping>
236
237</web-app>
Note: See TracBrowser for help on using the repository browser.