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 RepositoryLocator
public String getPrefix()
getPrefix
in interface org.apache.jackrabbit.webdav.DavResourceLocator
public String getResourcePath()
getResourcePath
in interface org.apache.jackrabbit.webdav.DavResourceLocator
public String getWorkspacePath()
getWorkspacePath
in interface org.apache.jackrabbit.webdav.DavResourceLocator
public String getWorkspaceName()
getWorkspaceName
in interface org.apache.jackrabbit.webdav.DavResourceLocator
public boolean isSameWorkspace(org.apache.jackrabbit.webdav.DavResourceLocator locator)
isSameWorkspace
in interface org.apache.jackrabbit.webdav.DavResourceLocator
public boolean isSameWorkspace(String workspaceName)
isSameWorkspace
in interface org.apache.jackrabbit.webdav.DavResourceLocator
public String getHref(boolean isCollection)
getHref
in interface org.apache.jackrabbit.webdav.DavResourceLocator
public boolean isRootLocation()
isRootLocation
in interface org.apache.jackrabbit.webdav.DavResourceLocator
public org.apache.jackrabbit.webdav.DavLocatorFactory getFactory()
getFactory
in interface org.apache.jackrabbit.webdav.DavResourceLocator
public String getRepositoryPath()
getRepositoryPath
in interface org.apache.jackrabbit.webdav.DavResourceLocator
public 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.