Class DavResourceLocatorFactory

  • All Implemented Interfaces:
    org.apache.jackrabbit.webdav.DavLocatorFactory

    public class DavResourceLocatorFactory
    extends org.apache.jackrabbit.webdav.simple.LocatorFactoryImplEx
    A factory of locators of resources in the JCR accessed through the WebDAV protocol. The resource locator has for goal two things:
    • convert the URL of the accessed resource to the path of this resource in the JCR tree after extracting from the URL the repository and the workspace name
    • convert the path of the resource in the JCR tree to an URL for a WebDAV access of this resource.
    Author:
    mmoquillon
    • Constructor Detail

      • DavResourceLocatorFactory

        public DavResourceLocatorFactory​(String repositoryPrefix)
    • Method Detail

      • createResourceLocator

        public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator​(String prefix,
                                                                                     String href)
        Specified by:
        createResourceLocator in interface org.apache.jackrabbit.webdav.DavLocatorFactory
        Overrides:
        createResourceLocator in class org.apache.jackrabbit.webdav.AbstractLocatorFactory
      • createResourceLocator

        public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator​(String prefix,
                                                                                     String workspacePath,
                                                                                     String path,
                                                                                     boolean isResourcePath)
        Specified by:
        createResourceLocator in interface org.apache.jackrabbit.webdav.DavLocatorFactory
        Overrides:
        createResourceLocator in class org.apache.jackrabbit.webdav.AbstractLocatorFactory
      • createResourceLocator

        public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator​(String prefix,
                                                                                     String workspacePath,
                                                                                     String resourcePath)
        Specified by:
        createResourceLocator in interface org.apache.jackrabbit.webdav.DavLocatorFactory
        Overrides:
        createResourceLocator in class org.apache.jackrabbit.webdav.AbstractLocatorFactory