<%@ 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"%><% request.setAttribute("title", "JCR Remoting Server"); 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.

See the draft document JCR_Webdav_Protocol.zip for more details regarding this remoting protocol.

Batch read and write as well as the missing functionality (cross workspace copy and clone) has been addressed with a extension to the remoting server.

Access the content repository

Use the following URLs to access the content repository in your 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

This implementation focuses on replicating all JCR features for remote access instead of providing standard WebDAV functionality or compatibility with existing WebDAV clients.

The following RFCs are used to implement the remoting functionality:

JCR Remoting Client

For the client counterpart of this WebDAV servlet please take a look at the Jackrabbit SPI2DAV module.

Configuration