-
Notifications
You must be signed in to change notification settings - Fork 198
Expand file tree
/
Copy pathweb.xml
More file actions
212 lines (187 loc) · 7.61 KB
/
web.xml
File metadata and controls
212 lines (187 loc) · 7.61 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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_3_1.xsd"
version="3.1" metadata-complete="false">
<display-name>knowledge</display-name>
<listener>
<listener-class>org.support.project.knowledge.listener.GlobalInitializationListener</listener-class>
</listener>
<listener>
<listener-class>org.support.project.web.listener.H2DBManagerListener</listener-class>
</listener>
<listener>
<listener-class>org.support.project.knowledge.deploy.InitializationListener</listener-class>
</listener>
<listener>
<listener-class>org.support.project.knowledge.listener.CronListener</listener-class>
</listener>
<filter>
<filter-name>EncodingFilter</filter-name>
<filter-class>org.support.project.web.filter.EncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter>
<filter-name>SeqFilter</filter-name>
<filter-class>org.support.project.web.filter.SeqFilter</filter-class>
</filter>
<!--
<filter>
<filter-name>BufferedServletInputStreamFilter</filter-name>
<filter-class>org.support.project.web.filter.BufferedServletInputStreamFilter</filter-class>
</filter>
-->
<filter>
<filter-name>LoggingFilter</filter-name>
<filter-class>org.support.project.web.filter.LoggingFilter</filter-class>
<init-param>
<param-name>ignore-regular-expression</param-name>
<param-value>^/template|^/bower|css$|js$|jpg$|jpeg$|gif$|png$</param-value>
</init-param>
</filter>
<filter>
<filter-name>ApiFilter</filter-name>
<filter-class>org.support.project.knowledge.filter.ApiFilter</filter-class>
</filter>
<filter>
<filter-name>AuthenticationFilter</filter-name>
<filter-class>org.support.project.knowledge.filter.CloseAbleAuthenticationFilter</filter-class>
<init-param>
<param-name>ignore-regular-expression</param-name>
<param-value>^/index|^/open|^/api|^/template|^/bower|^/images|^/css|^/js|^/favicon.ico|^/lang|^/assets|css$|js$|jpg$|jpeg$|gif$|png$|ico$|html$</param-value>
</init-param>
<init-param>
<param-name>close-ignore-regular-expression</param-name>
<param-value>^/index|^/template|^/bower|^/images|^/css|^/js|^/favicon.ico|^/lang|^/assets|css$|js$|jpg$|jpeg$|gif$|png$|ico$|html$|^/open.signup|^/open.PasswordInitialization|^/open.account</param-value>
</init-param>
<init-param>
<param-name>login-page</param-name>
<param-value>/WEB-INF/views/auth/form.jsp</param-value>
</init-param>
<init-param>
<param-name>login-error-page</param-name>
<param-value>/WEB-INF/views/auth/form.jsp</param-value>
</init-param>
<init-param>
<param-name>initial-page</param-name>
<param-value>/open.knowledge/list</param-value>
</init-param>
<init-param>
<param-name>out-page</param-name>
<param-value>/open.knowledge/list</param-value>
</init-param>
<init-param>
<param-name>auth-class-name</param-name>
<param-value>org.support.project.knowledge.logic.KnowledgeAuthenticationLogic</param-value>
</init-param>
<init-param>
<param-name>cookie-max-age</param-name>
<param-value>10</param-value>
</init-param>
<init-param>
<param-name>cookie-secure</param-name>
<param-value>false</param-value>
</init-param>
</filter>
<filter>
<filter-name>MultipartFilter</filter-name>
<filter-class>org.support.project.web.filter.MultipartFilter</filter-class>
</filter>
<filter>
<filter-name>MaintenanceModeFilter</filter-name>
<filter-class>org.support.project.knowledge.filter.MaintenanceModeFilter</filter-class>
</filter>
<filter>
<filter-name>ControlFilter</filter-name>
<filter-class>org.support.project.web.filter.ControlFilter</filter-class>
<init-param>
<param-name>controlPackage</param-name>
<param-value>org.support.project.knowledge.control,org.support.project.web.control</param-value>
</init-param>
<init-param>
<param-name>ignore-regular-expression</param-name>
<param-value>^/ws|^/template|^/bower|css$|js$|ico$|html$</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>EncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>SeqFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<!--
<filter-mapping>
<filter-name>BufferedServletInputStreamFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
-->
<filter-mapping>
<filter-name>LoggingFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>ApiFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>AuthenticationFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>MultipartFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>MaintenanceModeFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>ControlFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<welcome-file-list>
<welcome-file>index</welcome-file>
</welcome-file-list>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/WEB-INF/views/commons/errors/error.jsp</location>
</error-page>
<error-page>
<error-code>400</error-code>
<location>/WEB-INF/views/commons/errors/badrequest.jsp</location>
</error-page>
<error-page>
<error-code>401</error-code>
<location>/WEB-INF/views/commons/errors/unauthorized.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/views/commons/errors/forbidden.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/WEB-INF/views/commons/errors/not_found.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/WEB-INF/views/commons/errors/server_error.jsp</location>
</error-page>
<!-- <jsp-config> <jsp-property-group> <url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored> <page-encoding>UTF-8</page-encoding> <scripting-invalid>false</scripting-invalid>
<include-prelude>/WEB-INF/view/common/common.jsp</include-prelude> </jsp-property-group>
</jsp-config> -->
</web-app>