public class ArchivaDavResourceLocator extends Object implements org.apache.jackrabbit.webdav.DavResourceLocator, RepositoryLocator
| Constructor and Description |
|---|
ArchivaDavResourceLocator(String prefix,
String resourcePath,
String repositoryId,
org.apache.jackrabbit.webdav.DavLocatorFactory davLocatorFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Equality of path is achieved if the specified object is a
DavResourceLocator object with the same
hash code. |
org.apache.jackrabbit.webdav.DavLocatorFactory |
getFactory() |
String |
getHref(boolean isCollection) |
String |
getOrigResourcePath() |
String |
getPrefix() |
String |
getRepositoryId() |
String |
getRepositoryPath() |
String |
getResourcePath() |
String |
getWorkspaceName() |
String |
getWorkspacePath() |
int |
hashCode()
Computes the hash code from the href, which is built using the final fields prefix and resourcePath.
|
boolean |
isRootLocation() |
boolean |
isSameWorkspace(org.apache.jackrabbit.webdav.DavResourceLocator locator) |
boolean |
isSameWorkspace(String workspaceName) |
public ArchivaDavResourceLocator(String prefix, String resourcePath, String repositoryId, org.apache.jackrabbit.webdav.DavLocatorFactory davLocatorFactory)
public String getRepositoryId()
getRepositoryId in interface RepositoryLocatorpublic String getPrefix()
getPrefix in interface org.apache.jackrabbit.webdav.DavResourceLocatorpublic String getResourcePath()
getResourcePath in interface org.apache.jackrabbit.webdav.DavResourceLocatorpublic String getWorkspacePath()
getWorkspacePath in interface org.apache.jackrabbit.webdav.DavResourceLocatorpublic String getWorkspaceName()
getWorkspaceName in interface org.apache.jackrabbit.webdav.DavResourceLocatorpublic boolean isSameWorkspace(org.apache.jackrabbit.webdav.DavResourceLocator locator)
isSameWorkspace in interface org.apache.jackrabbit.webdav.DavResourceLocatorpublic boolean isSameWorkspace(String workspaceName)
isSameWorkspace in interface org.apache.jackrabbit.webdav.DavResourceLocatorpublic String getHref(boolean isCollection)
getHref in interface org.apache.jackrabbit.webdav.DavResourceLocatorpublic boolean isRootLocation()
isRootLocation in interface org.apache.jackrabbit.webdav.DavResourceLocatorpublic org.apache.jackrabbit.webdav.DavLocatorFactory getFactory()
getFactory in interface org.apache.jackrabbit.webdav.DavResourceLocatorpublic String getRepositoryPath()
getRepositoryPath in interface org.apache.jackrabbit.webdav.DavResourceLocatorpublic int hashCode()
public boolean equals(Object obj)
DavResourceLocator object with the same
hash code.public String getOrigResourcePath()
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.