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

Last change on this file since 5478 was 5478, checked in by Nicklas Nordborg, 12 years ago

References #1545: Publish news as a rss feed

Added servlet RssNewsFeed to serve rss document. It will cache the current news so it should not be too heavy even if clients update often.

The feed includes all public news and the broadcast message that the admin can set in the Administrate -> Broadcast message dialog.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 8.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 5478 2010-11-05 10:38:08Z 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  <!-- The Upload servlet used to upload files  -->
116  <servlet>
117    <servlet-name>upload</servlet-name>
118    <servlet-class>
119      net.sf.basedb.clients.web.servlet.Upload
120    </servlet-class>
121  </servlet>
122  <servlet-mapping>
123    <servlet-name>upload</servlet-name>
124    <url-pattern>/filemanager/upload/Upload</url-pattern>
125  </servlet-mapping>
126
127  <!-- The SpotImage servlet used to view spot images in a raw bioassay -->
128  <servlet>
129    <servlet-name>spotimage</servlet-name>
130    <servlet-class>
131      net.sf.basedb.clients.web.servlet.ViewSpotImage
132    </servlet-class>
133  </servlet>
134  <servlet-mapping>
135    <servlet-name>spotimage</servlet-name>
136    <url-pattern>/views/rawbioassays/rawdata/spotimage/*</url-pattern>
137  </servlet-mapping>
138
139  <!-- The Generic PlotServlet for the HTML plot tool -->
140  <servlet>
141    <servlet-name>plotter</servlet-name>
142    <servlet-class>
143      net.sf.basedb.clients.web.servlet.PlotServlet
144    </servlet-class>
145    <init-param>
146      <param-name>maxWidth</param-name>
147      <param-value>1000</param-value>
148    </init-param>
149    <init-param>
150      <param-name>maxHeight</param-name>
151      <param-value>800</param-value>
152    </init-param>
153    <init-param>
154      <param-name>defaultWidth</param-name>
155      <param-value>600</param-value>
156    </init-param>
157    <init-param>
158      <param-name>defaultHeight</param-name>
159      <param-value>400</param-value>
160    </init-param>
161    <init-param>
162      <param-name>defaultFormat</param-name>
163      <param-value>png</param-value>
164    </init-param>
165  </servlet>
166  <servlet-mapping>
167    <servlet-name>plotter</servlet-name>
168    <url-pattern>/views/experiments/plotter/plot</url-pattern>
169  </servlet-mapping>
170
171  <!-- The ExperimentExplorer PlotServlet  -->
172  <servlet>
173    <servlet-name>eeplotter</servlet-name>
174    <servlet-class>
175      net.sf.basedb.clients.web.servlet.ExperimentExplorerPlotServlet
176    </servlet-class>
177  </servlet>
178  <servlet-mapping>
179    <servlet-name>eeplotter</servlet-name>
180    <url-pattern>/views/experiments/explorer/plot</url-pattern>
181  </servlet-mapping>
182
183  <!-- The News feed servlet  -->
184  <servlet>
185    <servlet-name>news-feed</servlet-name>
186    <servlet-class>
187      net.sf.basedb.clients.web.servlet.RssNewsFeed
188    </servlet-class>
189  </servlet>
190  <servlet-mapping>
191    <servlet-name>news-feed</servlet-name>
192    <url-pattern>/info/news.rss</url-pattern>
193  </servlet-mapping>
194
195  <!-- Axis2 servlets for web services -->
196  <servlet>
197    <servlet-name>AxisServlet</servlet-name>
198    <display-name>Apache-Axis Servlet</display-name>
199    <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
200    <load-on-startup>3</load-on-startup>
201  </servlet>
202  <servlet>
203    <servlet-name>AxisRESTServlet</servlet-name>
204    <display-name>Apache-Axis Servlet (REST)</display-name>
205    <servlet-class>org.apache.axis2.transport.http.AxisRESTServlet</servlet-class>
206  </servlet>
207  <servlet-mapping>
208    <servlet-name>AxisRESTServlet</servlet-name>
209    <url-pattern>/rest/*</url-pattern>
210  </servlet-mapping>
211  <servlet-mapping>
212    <servlet-name>AxisServlet</servlet-name>
213    <url-pattern>/services/*</url-pattern>
214  </servlet-mapping>
215 
216  <!-- Extensions servlet for managing extensions to the web client -->
217  <servlet>
218    <servlet-name>ExtensionsServlet</servlet-name>
219    <display-name>Web client extensions manager</display-name>
220    <servlet-class>net.sf.basedb.clients.web.servlet.ExtensionsServlet</servlet-class>
221    <load-on-startup>2</load-on-startup>
222  </servlet>
223  <servlet-mapping>
224    <servlet-name>ExtensionsServlet</servlet-name>
225    <url-pattern>*.servlet</url-pattern>
226  </servlet-mapping>
227  <servlet-mapping>
228    <servlet-name>ExtensionsServlet</servlet-name>
229    <url-pattern>/extensions/servlet/*</url-pattern>
230  </servlet-mapping>
231 
232  <!-- Mapping *.xjsp files to a custom JSP compiler that adds extension JAR file to classpath -->
233  <!-- EXPERIMENTAL!! -->
234    <servlet>
235        <servlet-name>xjsp</servlet-name>
236        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
237        <init-param>
238            <param-name>fork</param-name>
239            <param-value>false</param-value>
240        </init-param>
241        <init-param>
242          <param-name>compilerClassName</param-name>
243          <param-value>net.sf.basedb.clients.web.extensions.XJspCompiler</param-value>
244        </init-param>
245    </servlet>
246    <servlet-mapping>
247        <servlet-name>xjsp</servlet-name>
248        <url-pattern>*.xjsp</url-pattern>
249    </servlet-mapping>
250
251 
252  <!-- The CompileAll servlet used to compile all JSP pages -->
253  <!-- EXPERIMENTAL!! -->
254  <!--
255  <servlet>
256    <servlet-name>compile</servlet-name>
257    <servlet-class>
258      net.sf.basedb.clients.web.servlet.CompileAll
259    </servlet-class>
260  </servlet>
261  <servlet-mapping>
262    <servlet-name>compile</servlet-name>
263    <url-pattern>/compile</url-pattern>
264  </servlet-mapping>
265  -->
266
267  <!-- A filter that sets the character encoding on all *.jsp and *.xjsp files -->
268  <filter>
269    <filter-name>characterEncoding</filter-name>
270    <filter-class>net.sf.basedb.clients.web.servlet.CharacterEncodingFilter</filter-class>
271    <init-param>
272      <param-name>characterEncoding</param-name>
273      <param-value>UTF-8</param-value>
274    </init-param>
275  </filter>
276  <filter-mapping>
277    <filter-name>characterEncoding</filter-name>
278    <url-pattern>*.jsp</url-pattern>
279  </filter-mapping>
280  <filter-mapping>
281    <filter-name>characterEncoding</filter-name>
282    <url-pattern>*.xjsp</url-pattern>
283  </filter-mapping>
284
285</web-app>
Note: See TracBrowser for help on using the repository browser.