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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jackrabbit.webdav.DavResourceLocatorcreateResourceLocator(String prefix, String href) org.apache.jackrabbit.webdav.DavResourceLocatorcreateResourceLocator(String prefix, String workspacePath, String resourcePath) Create a newDavResourceLocatorfrom the specified prefix, workspace path and resource path, whithout modifying the specified Strings.org.apache.jackrabbit.webdav.DavResourceLocatorcreateResourceLocator(String prefix, String workspacePath, String resourcePath, boolean isResourcePath) Create a newDavResourceLocatorfrom 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:
createResourceLocatorin interfaceorg.apache.jackrabbit.webdav.DavLocatorFactory
-
createResourceLocator
public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix, String workspacePath, String resourcePath) Create a newDavResourceLocatorfrom 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:
createResourceLocatorin 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 newDavResourceLocatorfrom the specified prefix, workspace path and resource path. I- Specified by:
createResourceLocatorin interfaceorg.apache.jackrabbit.webdav.DavLocatorFactory- Parameters:
prefix-workspacePath-resourcePath-isResourcePath-- See Also:
-
DavLocatorFactory.createResourceLocator(String, String, String, boolean)
-