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

Last change on this file since 4975 was 4975, checked in by Nicklas Nordborg, 13 years ago

Fixes #1333: Alternate triggering of servlets in extensions

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