public class SlingLocatorFactory extends Object implements org.apache.jackrabbit.webdav.DavLocatorFactory
Constructor and Description |
---|
SlingLocatorFactory(String workspaceName) |
Modifier and Type | Method and Description |
---|---|
org.apache.jackrabbit.webdav.DavResourceLocator |
createResourceLocator(String prefix,
String href) |
org.apache.jackrabbit.webdav.DavResourceLocator |
createResourceLocator(String prefix,
String workspacePath,
String resourcePath)
Create a new
DavResourceLocator 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 new
DavResourceLocator from the specified prefix,
workspace path and resource path. |
public SlingLocatorFactory(String workspaceName)
public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix, String href)
createResourceLocator
in interface org.apache.jackrabbit.webdav.DavLocatorFactory
public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix, String workspacePath, String resourcePath)
DavResourceLocator
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 are null
.createResourceLocator
in interface org.apache.jackrabbit.webdav.DavLocatorFactory
prefix
- workspacePath
- path or the workspace containing this resource or
null
.resourcePath
- Path of the resource or null
. Any non
null value must start with the specified workspace path.DavResourceLocator
DavLocatorFactory.createResourceLocator(String, String, String)
public org.apache.jackrabbit.webdav.DavResourceLocator createResourceLocator(String prefix, String workspacePath, String resourcePath, boolean isResourcePath)
DavResourceLocator
from the specified prefix,
workspace path and resource path. IcreateResourceLocator
in interface org.apache.jackrabbit.webdav.DavLocatorFactory
prefix
- workspacePath
- resourcePath
- isResourcePath
- DavLocatorFactory.createResourceLocator(String, String, String,
boolean)
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.