Class SlingLocatorFactory
java.lang.Object
org.apache.sling.jcr.webdav.impl.helper.SlingLocatorFactory
- All Implemented Interfaces:
org.apache.jackrabbit.webdav.DavLocatorFactory
public class SlingLocatorFactory
extends Object
implements org.apache.jackrabbit.webdav.DavLocatorFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jackrabbit.webdav.DavResourceLocator
createResourceLocator
(String prefix, String href) org.apache.jackrabbit.webdav.DavResourceLocator
createResourceLocator
(String prefix, String workspacePath, String resourcePath) Create a newDavResourceLocator
from the specified prefix, workspace path and resource path, whithout modifying the specified Strings.org.apache.jackrabbit.webdav.DavResourceLocator
createResourceLocator
(String prefix, String workspacePath, String resourcePath, boolean isResourcePath) Create a newDavResourceLocator
from the specified prefix, workspace path and resource path.
-
Constructor Details
-
SlingLocatorFactory
-
-
Method Details
-
createResourceLocator
public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix, String href) - Specified by:
createResourceLocator
in interfaceorg.apache.jackrabbit.webdav.DavLocatorFactory
-
createResourceLocator
public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix, String workspacePath, String resourcePath) Create a newDavResourceLocator
from the specified prefix, workspace path and resource path, whithout modifying the specified Strings. Note, that it is expected that the resource path starts with the given workspace path unless both values arenull
.- Specified by:
createResourceLocator
in interfaceorg.apache.jackrabbit.webdav.DavLocatorFactory
- Parameters:
prefix
-workspacePath
- path or the workspace containing this resource ornull
.resourcePath
- Path of the resource ornull
. Any non null value must start with the specified workspace path.- Returns:
- a new
DavResourceLocator
- See Also:
-
DavLocatorFactory.createResourceLocator(String, String, String)
-
createResourceLocator
public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix, String workspacePath, String resourcePath, boolean isResourcePath) Create a newDavResourceLocator
from the specified prefix, workspace path and resource path. I- Specified by:
createResourceLocator
in interfaceorg.apache.jackrabbit.webdav.DavLocatorFactory
- Parameters:
prefix
-workspacePath
-resourcePath
-isResourcePath
-- See Also:
-
DavLocatorFactory.createResourceLocator(String, String, String, boolean)
-