<%@ page import="org.apache.jackrabbit.j2ee.JCRWebdavServerServlet, java.net.URI" %><%-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --%><%@page import="org.apache.jackrabbit.util.Text"%> <%@ page import="org.apache.jackrabbit.j2ee.JcrRemotingServlet" %> <% request.setAttribute("title", "JCR Remoting Server with Batch Read/Write"); URI uri = new URI(request.getRequestURL().toString()); int port = uri.getPort(); String href = uri.getScheme() + "://" + uri.getHost() + (port == -1 ? "" : (":" + port)) + request.getContextPath() + JCRWebdavServerServlet.getPathPrefix(pageContext.getServletContext()); href = Text.encodeIllegalXMLCharacters(href); String shref = href + "/default/jcr:root"; %>

The JCR Remoting Server provides an item-based WebDAV view to the JCR repository, mapping the functionality provided by JSR 170 to the WebDAV protocol in order to allow remote content repository access via WebDAV.

This implementation variant adds batch read and write functionality to the initial JCR Remoting Server. In addition it supports copy across workspaces and clone.

Access the content repository

Use the following URLs to access the content repository in the remoting client:

<%= href %>
to access all workspaces of your JCR repository
<%= shref %>
to access a single workspace (example with workspace named 'default')

Supported WebDAV functionality

See JCR Remoting Server.

Batch Read

Composes a JSON object for a node (and its child items) up to a explicitely specified or configuration determined depth.
See JavaDoc for details or try the Examples.

Batch Write

In contrast to the default JCR remoting this extended version allows to send a block of modifications (SPI Batch) within a single POST request containing a custom ":diff" parameter.
See the JavaDoc for details or try the Examples.

JCR Remoting Client

For the client counterpart of this WebDAV servlet please take a look at the extended SPI2DAV project.

Configuration