| 1 |
<%@ page import="org.apache.jackrabbit.j2ee.JCRWebdavServerServlet, |
| 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 |
<%@ page import="org.apache.jackrabbit.j2ee.JcrRemotingServlet" %> |
| 20 |
<% |
| 21 |
request.setAttribute("title", "JCR Remoting Server with Batch Read/Write"); |
| 22 |
|
| 23 |
URI uri = new URI(request.getRequestURL().toString()); |
| 24 |
int port = uri.getPort(); |
| 25 |
String href = |
| 26 |
uri.getScheme() + "://" + uri.getHost() + (port == -1 ? "" : (":" + port)) |
| 27 |
+ request.getContextPath() |
| 28 |
+ JCRWebdavServerServlet.getPathPrefix(pageContext.getServletContext()); |
| 29 |
href = Text.encodeIllegalXMLCharacters(href); |
| 30 |
String shref = href + "/default/jcr:root"; |
| 31 |
%><jsp:include page="header.jsp"/> |
| 32 |
<p> |
| 33 |
The JCR Remoting Server provides an item-based WebDAV view to the |
| 34 |
JCR repository, mapping the functionality provided by JSR 170 to the |
| 35 |
WebDAV protocol in order to allow remote content repository access |
| 36 |
via WebDAV. |
| 37 |
</p> |
| 38 |
<p> |
| 39 |
This implementation variant adds batch read and write functionality to the initial |
| 40 |
<a href="webdav-jcr.jsp">JCR Remoting Server</a>. In addition it supports |
| 41 |
copy across workspaces and clone. |
| 42 |
</p> |
| 43 |
|
| 44 |
<h3>Access the content repository</h3> |
| 45 |
<p> |
| 46 |
Use the following URLs to access the content repository in the remoting client: |
| 47 |
</p> |
| 48 |
<dl> |
| 49 |
<dt><a href="<%= href %>"><%= href %></a></dt> |
| 50 |
<dd>to access all workspaces of your JCR repository</dd> |
| 51 |
<dt><a href="<%= shref %>"><%= shref %></a></dt> |
| 52 |
<dd>to access a single workspace (example with workspace named 'default')</dd> |
| 53 |
</dl> |
| 54 |
|
| 55 |
<h3>Supported WebDAV functionality</h3> |
| 56 |
<p> |
| 57 |
See <a href="webdav-jcr.jsp">JCR Remoting Server</a>. |
| 58 |
</p> |
| 59 |
|
| 60 |
<h3>Batch Read</h3> |
| 61 |
<p> |
| 62 |
Composes a JSON object for a node (and its child items) up to a explicitely |
| 63 |
specified or configuration determined depth. |
| 64 |
<br> |
| 65 |
See <a href ="http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/remoting/davex/JcrRemotingServlet.java">JavaDoc</a> for details |
| 66 |
or try the <a href="remoting/index.jsp">Examples</a>. |
| 67 |
</p> |
| 68 |
|
| 69 |
<h3>Batch Write</h3> |
| 70 |
<p> |
| 71 |
In contrast to the default JCR remoting this extended version allows to send |
| 72 |
a block of modifications (SPI Batch) within a single POST request containing a |
| 73 |
custom ":diff" parameter. |
| 74 |
<br> |
| 75 |
See the <a href ="http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/remoting/davex/JcrRemotingServlet.java">JavaDoc</a> for details |
| 76 |
or try the <a href="remoting/index.jsp">Examples</a>. |
| 77 |
</p> |
| 78 |
|
| 79 |
<h3>JCR Remoting Client</h3> |
| 80 |
<p> |
| 81 |
For the client counterpart of this WebDAV servlet please take a look at the <a href="http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-spi2dav/src/main/java/org/apache/jackrabbit/spi2davex">extended SPI2DAV</a> |
| 82 |
project. |
| 83 |
</p> |
| 84 |
|
| 85 |
<h3>Configuration</h3> |
| 86 |
<ul> |
| 87 |
<li>Context Path: <%= Text.encodeIllegalXMLCharacters(request.getContextPath()) %></li> |
| 88 |
<li>Resource Path Prefix: <%= Text.encodeIllegalXMLCharacters(JcrRemotingServlet.getPathPrefix(pageContext.getServletContext())) %></li> |
| 89 |
<li>Workspace Name: <i>optional</i> (available workspaces are mapped as resources)</li> |
| 90 |
<li>Additional servlet configuration: see <i>/WEB-INF/web.xml</i></li> |
| 91 |
</ul> |
| 92 |
<jsp:include page="footer.jsp"/> |