-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathweb.xml
More file actions
195 lines (177 loc) · 6.25 KB
/
web.xml
File metadata and controls
195 lines (177 loc) · 6.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="4.0"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
<context-param>
<param-name>GUS_HOME</param-name>
<param-value>/WEB-INF/wdk-model/</param-value>
</context-param>
<context-param>
<!-- Service endpoint must match url-pattern for WDK service below -->
<param-name>wdkServiceEndpoint</param-name>
<param-value>/service</param-value>
</context-param>
<listener>
<listener-class>org.apidb.apicommon.controller.ApplicationInitListener</listener-class>
</listener>
<listener>
<listener-class>org.gusdb.wdk.jmx.JmxInitListener</listener-class>
</listener>
<!-- The Apache file upload library starts a cleanup thread to remove temporary files -->
<!-- This listener destroys that thread when the webapp is unloaded. -->
<listener>
<listener-class>org.apache.commons.fileupload.servlet.FileCleanerCleanup</listener-class>
</listener>
<!--
<filter>
<filter-name>MDCServletFilter</filter-name>
<filter-class>org.gusdb.wdk.controller.filter.MDCServletFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>MDCServletFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<filter>
<filter-name>HttpResponseLogger</filter-name>
<filter-class>org.gusdb.wdk.controller.filter.HttpResponseHeaderLogger</filter-class>
</filter>
<filter-mapping>
<filter-name>HttpResponseLogger</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>AssetBundlerFilter</filter-name>
<filter-class>org.eupathdb.common.controller.AssetBundleFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>AssetBundlerFilter</filter-name>
<url-pattern>/bundles/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>BetaLegacyFilter</filter-name>
<filter-class>org.eupathdb.common.controller.BetaLegacyFilter</filter-class>
<init-param>
<param-name>beta</param-name>
<!-- switch to false if in the prod branch -->
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>BetaLegacyFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Replace /-PROJECT-/ in the request URL with the WDK Project ID -->
<filter>
<filter-name>ProjectIdMacroFilter</filter-name>
<filter-class>org.eupathdb.common.controller.ProjectIdMacroFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ProjectIdMacroFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- UrlRewrite filter -->
<!-- This is used in conjuction with the asset fingerprinting utilities in EbrcWebsiteCommon.
We also set some cache-related headers here (see /WEB-INF/urlrewrite.xml). -->
<filter>
<filter-name>UrlRewriteFilter</filter-name>
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>UrlRewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<!-- End UrlRewrite filter -->
<!-- JavaMelody monitoring plugin configuration -->
<!-- <listener>
<listener-class>net.bull.javamelody.SessionListener</listener-class>
</listener> -->
<!-- <filter>
<filter-name>monitoring-display</filter-name>
<filter-class>org.eupathdb.common.controller.MelodyDisplayFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>monitoring-display</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>monitoring</filter-name>
<filter-class>net.bull.javamelody.MonitoringFilter</filter-class>
<init-param>
<param-name>disabled</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>storage-directory</param-name>
<param-value>melody-data</param-value>
</init-param>
<init-param>
<param-name>log</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>monitoring</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping> -->
<!-- End JavaMelody monitoring plugin configuration -->
<!-- WDK RESTful client filter -->
<servlet>
<servlet-name>WDKClient</servlet-name>
<jsp-file>/WEB-INF/includes/client.html</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>WDKClient</servlet-name>
<url-pattern>/app/*</url-pattern>
</servlet-mapping>
<!-- End of WDK Restful client filter -->
<!-- WSF RESTful service filter -->
<servlet>
<servlet-name>WSF</servlet-name>
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>javax.ws.rs.Application</param-name>
<param-value>org.gusdb.wsf.service.WsfServiceApplication</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>WSF</servlet-name>
<url-pattern>/services/WsfService/*</url-pattern>
</servlet-mapping>
<!-- End of WSF Restful service filter -->
<!-- WDK RESTful service filter -->
<servlet>
<servlet-name>WDK</servlet-name>
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>javax.ws.rs.Application</param-name>
<param-value>org.apidb.apicommon.service.ApiWebServiceApplication</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>WDK</servlet-name>
<url-pattern>/service/*</url-pattern>
</servlet-mapping>
<!-- End of WSF Restful service filter -->
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<!-- Error Page Mappings -->
<error-page>
<error-code>401</error-code>
<location>/401.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/404.html</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/500.html</location>
</error-page>
</web-app>