Package org.apache.jackrabbit.webdav
Interface DavLocatorFactory
- 
- All Known Implementing Classes:
 AbstractLocatorFactory
public interface DavLocatorFactoryDavLocatorFactory... 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DavResourceLocatorcreateResourceLocator(java.lang.String prefix, java.lang.String href)Create a newDavResourceLocator.DavResourceLocatorcreateResourceLocator(java.lang.String prefix, java.lang.String workspacePath, java.lang.String resourcePath)Create a newDavResourceLocator.DavResourceLocatorcreateResourceLocator(java.lang.String prefix, java.lang.String workspacePath, java.lang.String path, boolean isResourcePath) 
 - 
 
- 
- 
Method Detail
- 
createResourceLocator
DavResourceLocator createResourceLocator(java.lang.String prefix, java.lang.String href)
Create a newDavResourceLocator.- Parameters:
 prefix- String consisting of [scheme:][//authority][path] where path defines the (imaginary) path to theroot location.href- of the resource to be created. The given string may start with the 'prefix'. Please note, that in contrast tocreateResourceLocator(String, String, String)the href is expected to be URL encoded.- Returns:
 - a new resource locator.
 
 
- 
createResourceLocator
DavResourceLocator createResourceLocator(java.lang.String prefix, java.lang.String workspacePath, java.lang.String resourcePath)
Create a newDavResourceLocator. This methods corresponds tocreateResourceLocator(String, String, String, boolean)with the flag set to true.- Parameters:
 prefix- String consisting of [scheme:][//authority][path] where path defines the path to theroot location.workspacePath- the first segment of the URIs path indicating the workspace. The implementation may allow a empty String if workspaces are not supported.resourcePath- the URL decoded resource path.- Returns:
 - a new resource locator.
 
 
- 
createResourceLocator
DavResourceLocator createResourceLocator(java.lang.String prefix, java.lang.String workspacePath, java.lang.String path, boolean isResourcePath)
- Parameters:
 prefix- String consisting of [scheme:][//authority][path] where path defines the path to theroot location.workspacePath- the first segment of the URIs path indicating the workspace. The implementation may allow a empty String if workspaces are not supported.path- the URL decoded path.isResourcePath- If true this method returns the same ascreateResourceLocator(String, String, String), otherwise the given path is treated as internal repository path. The implementation may choose to implement a conversion of the repository path to a valid resource path, e.g. (un)escaping of certain characters, due to incompatibility with the URI definition (or vice versa). Note thatDavResourceLocator.getRepositoryPath()should in this case implement the reverse operation.- Returns:
 - a new resource locator.
 - See Also:
 DavResourceLocator.getRepositoryPath()
 
 - 
 
 -