Debian Codegraph @

jackrabbit-standalone-components/src/main/resources/WEB-INF/web.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 -->
18
19 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
20 <web-app>
21 <display-name>Apache Jackrabbit</display-name>
22
23 <!-- ====================================================================== -->
24 <!-- R E P O S I T O R Y S E R V L E T -->
25 <!-- ====================================================================== -->
26 <servlet>
27 <servlet-name>Repository</servlet-name>
28 <servlet-class>org.apache.jackrabbit.j2ee.RepositoryAccessServlet</servlet-class>
29
30 <init-param>
31 <param-name>repository.context.attribute.name</param-name>
32 <param-value>javax.jcr.Repository</param-value>
33 </init-param>
34
35 <load-on-startup>2</load-on-startup>
36 </servlet>
37
38 <!-- ====================================================================== -->
39 <!-- W E B D A V S E R V L E T -->
40 <!-- ====================================================================== -->
41 <servlet>
42 <servlet-name>Webdav</servlet-name>
43 <description>
44 The webdav servlet that connects HTTP request to the repository.
45 </description>
46 <servlet-class>org.apache.jackrabbit.j2ee.SimpleWebdavServlet</servlet-class>
47 <init-param>
48 <param-name>resource-path-prefix</param-name>
49 <param-value>/repository</param-value>
50 <description>
51 defines the prefix for spooling resources out of the repository.
52 </description>
53 </init-param>
54 <init-param>
55 <param-name>resource-config</param-name>
56 <param-value>/WEB-INF/config.xml</param-value>
57 <description>
58 Defines various dav-resource configuration parameters.
59 </description>
60 </init-param>
61 <!--
62 Optional parameter to define the behaviour of the referrer-based CSRF protection
63 -->
64 <!--
65 <init-param>
66 <param-name>csrf-protection</param-name>
67 <param-value>host1.domain.com,host2.domain.org</param-value>
68 <description>
69 Defines the behaviour of the referrer based CSRF protection
70 1) If omitted or left empty the (default) behaviour is to allow only requests with
71 an empty referrer header or a referrer host equal to the server host
72 2) May also contain a comma separated list of additional allowed referrer hosts
73 3) If set to 'disabled' no referrer checking will be performed at all
74 </description>
75 </init-param>
76 -->
77 <load-on-startup>3</load-on-startup>
78 </servlet>
79
80 <!-- ====================================================================== -->
81 <!-- W E B D A V S E R V E R S E R V L E T -->
82 <!-- ====================================================================== -->
83 <servlet>
84 <servlet-name>JCRWebdavServer</servlet-name>
85 <description>
86 The servlet used to remote JCR calls over HTTP.
87 </description>
88 <servlet-class>org.apache.jackrabbit.j2ee.JcrRemotingServlet</servlet-class>
89 <init-param>
90 <param-name>missing-auth-mapping</param-name>
91 <param-value></param-value>
92 <description>
93 Defines how a missing authorization header should be handled.
94 1) If this init-param is missing, a 401 response is generated.
95 This is suitable for clients (eg. WebDAV clients) for which
96 sending a proper authorization header is not possible if the
97 server never sent a 401.
98 2) If this init-param is present with an empty value,
99 null-credentials are returned, thus forcing an null login
100 on the repository.
101 3) If this init-param is present with the value 'guestcredentials'
102 java.jcr.GuestCredentials are used to login to the repository.
103 4) If this init-param has a 'user:password' value, the respective
104 simple credentials are generated.
105 </description>
106 </init-param>
107 <!--
108 Optional parameter to define the value of the 'WWW-Authenticate' header
109 -->
110 <!--
111 <init-param>
112 <param-name>authenticate-header</param-name>
113 <param-value>Basic realm="Jackrabbit Webdav Server"</param-value>
114 <description>
115 Defines the value of the 'WWW-Authenticate' header.
116 </description>
117 </init-param>
118 -->
119 <init-param>
120 <param-name>resource-path-prefix</param-name>
121 <param-value>/server</param-value>
122 <description>
123 defines the prefix for spooling resources out of the repository.
124 </description>
125 </init-param>
126 <!--
127 Init parameters specific for JcrRemotingServlet
128 -->
129 <!--
130 <init-param>
131 <param-name>home</param-name>
132 <param-value></param-value>
133 <description>JcrRemotingServlet: Optional home directory for JcrRemotingServlet temporary files (default: "jackrabbit")</description>
134 </init-param>
135 <init-param>
136 <param-name>temp-directory</param-name>
137 <param-value></param-value>
138 <description>JcrRemotingServlet: Optional temporary directory name (under home, default: "tmp")</description>
139 </init-param>
140 <init-param>
141 <param-name>batchread-config</param-name>
142 <param-value>/WEB-INF/batchread.properties</param-value>
143 <description>JcrRemotingServlet: Optional mapping from node type names to default depth.</description>
144 </init-param>
145 <init-param>
146 <param-name>concurrency-level</param-name>
147 <param-value>50</param-value>
148 <description>Number of concurrent requests expected. Default value is 50.</description>
149 </init-param>
150 -->
151 <!--
152 Optional parameter to define the behaviour of the referrer-based CSRF protection
153 -->
154 <!--
155 <init-param>
156 <param-name>csrf-protection</param-name>
157 <param-value>host1.domain.com,host2.domain.org</param-value>
158 <description>
159 Defines the behaviour of the referrer based CSRF protection
160 1) If omitted or left empty the (default) behaviour is to allow only requests with
161 an empty referrer header or a referrer host equal to the server host
162 2) May also contain a comma separated list of additional allowed referrer hosts
163 3) If set to 'disabled' no referrer checking will be performed at all
164 </description>
165 </init-param>
166 -->
167 <load-on-startup>5</load-on-startup>
168 </servlet>
169
170 <!-- ====================================================================== -->
171 <!-- R M I B I N D I N G S E R V L E T -->
172 <!-- ====================================================================== -->
173 <servlet>
174 <servlet-name>RMI</servlet-name>
175 <servlet-class>org.apache.jackrabbit.servlet.remote.RemoteBindingServlet</servlet-class>
176 </servlet>
177
178 <!-- ====================================================================== -->
179 <!-- S E R V L E T M A P P I N G -->
180 <!-- ====================================================================== -->
181 <servlet-mapping>
182 <servlet-name>Webdav</servlet-name>
183 <url-pattern>/repository/*</url-pattern>
184 </servlet-mapping>
185 <servlet-mapping>
186 <servlet-name>JCRWebdavServer</servlet-name>
187 <url-pattern>/server/*</url-pattern>
188 </servlet-mapping>
189 <servlet-mapping>
190 <servlet-name>RMI</servlet-name>
191 <url-pattern>/rmi</url-pattern>
192 </servlet-mapping>
193
194 <!-- ====================================================================== -->
195 <!-- W E L C O M E F I L E S -->
196 <!-- ====================================================================== -->
197 <welcome-file-list>
198 <welcome-file>index.jsp</welcome-file>
199 </welcome-file-list>
200
201 <error-page>
202 <exception-type>org.apache.jackrabbit.j2ee.JcrApiNotFoundException</exception-type>
203 <location>/error/classpath.jsp</location>
204 </error-page>
205 <error-page>
206 <exception-type>javax.jcr.RepositoryException</exception-type>
207 <location>/error/repository.jsp</location>
208 </error-page>
209
210 </web-app>