Debian Codegraph @

jackrabbit-webapp/src/main/webapp/webdav-simple.jsp

raw
1 <%@ page import="org.apache.jackrabbit.j2ee.SimpleWebdavServlet,
2 java.net.URI"
3 %><%--
4 Licensed to the Apache Software Foundation (ASF) under one or more
5 contributor license agreements. See the NOTICE file distributed with
6 this work for additional information regarding copyright ownership.
7 The ASF licenses this file to You under the Apache License, Version 2.0
8 (the "License"); you may not use this file except in compliance with
9 the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 --%><%@page import="org.apache.jackrabbit.util.Text"%><%
19 request.setAttribute("title", "Standard WebDAV Server");
20
21 URI uri = new URI(request.getRequestURL().toString());
22 int port = uri.getPort();
23 String href =
24 uri.getScheme() + "://" + uri.getHost() + (port == -1 ? "" : (":" + port))
25 + request.getContextPath()
26 + SimpleWebdavServlet.getPathPrefix(pageContext.getServletContext())
27 + "/default/";
28 href = Text.encodeIllegalXMLCharacters(href);
29 %><jsp:include page="header.jsp"/>
30
31 <p>
32 The default WebDAV server (aka: Simple Server) is a
33 <a href="http://www.ietf.org/rfc/rfc2518.txt">DAV 1,2</a> and
34 <a href="http://www.ietf.org/rfc/rfc3253.txt">DeltaV</a>
35 compliant WebDAV server implementation. It offers a file-based view to
36 the JCR repository, suitable for everybody looking for standard WebDAV
37 functionality. Essentially, the contents of the underlying content
38 repository are exposed as a hierarchical collection of files and folders.
39 <p>
40
41 <h3>Access the content repository</h3>
42 <p>
43 Use the following URL to access the content repository in your WebDAV client:
44 </p>
45 <ul>
46 <li><a href="<%= href %>"><%= href %></a></li>
47 </ul>
48 <p>
49 The server asks for authentication and will accept credentials for the default
50 admin user: <code>admin/admin</code>. You can modify this security policy in
51 the repository configuration file.
52 </p>
53 <p>
54 To access other workspace than the default one, replace the last part of
55 the URL (<code>/default/</code>) with the name of another workspace.
56 </p>
57 <p>
58 You can also <a href="search.jsp">search</a> the default workspace.
59 </p>
60
61 <h3>File system access</h3>
62 <p>
63 Many operating systems, including Windows and Mac OS X, allow you to
64 "mount" a WebDAV server as a shared network disk. You can use the above
65 URL to make the default workspace available as such a network disk, after
66 which you can use normal file system tools to copy files and folders to
67 and from the content repository.
68 </p>
69
70 <h3>Supported WebDAV functionality</h3>
71 <ul>
72 <li><a href="http://www.ietf.org/rfc/rfc2518.txt">RFC 2518</a> (WebDAV 1,2)</li>
73 <li><a href="http://www.ietf.org/rfc/rfc3253.txt">RFC 3253</a> (DeltaV)</li>
74 <li>Experimental: <a href="http://www.ietf.org/rfc/rfc5842.txt">RFC 5842</a> (WebDAV BIND)</li>
75 </ul>
76
77 <h3>Configuration</h3>
78 <ul>
79 <li>Context path: <%= Text.encodeIllegalXMLCharacters(request.getContextPath()) %></li>
80 <li>Resource path prefix: <%= Text.encodeIllegalXMLCharacters(SimpleWebdavServlet.getPathPrefix(pageContext.getServletContext())) %></li>
81 <li>Servlet configuration: see <i>/WEB-INF/web.xml</i></li>
82 <li>WebDAV specific resource configuration: see <i>/WEB-INF/config.xml</i></li>
83 </ul>
84 <jsp:include page="footer.jsp"/>