This project has retired. For details please refer to its Attic page.
ArchivaDavResourceLocator

org.apache.maven.archiva.webdav
Class ArchivaDavResourceLocator

Package class diagram package ArchivaDavResourceLocator
java.lang.Object
  extended by org.apache.maven.archiva.webdav.ArchivaDavResourceLocator
All Implemented Interfaces:
org.apache.jackrabbit.webdav.DavResourceLocator, RepositoryLocator

public class ArchivaDavResourceLocator
extends java.lang.Object
implements org.apache.jackrabbit.webdav.DavResourceLocator, RepositoryLocator


Constructor Summary
ArchivaDavResourceLocator(java.lang.String prefix, java.lang.String resourcePath, java.lang.String repositoryId, org.apache.jackrabbit.webdav.DavLocatorFactory davLocatorFactory)
           
 
Method Summary
 boolean equals(java.lang.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()
           
 java.lang.String getHref(boolean isCollection)
           
 java.lang.String getOrigResourcePath()
           
 java.lang.String getPrefix()
           
 java.lang.String getRepositoryId()
           
 java.lang.String getRepositoryPath()
           
 java.lang.String getResourcePath()
           
 java.lang.String getWorkspaceName()
           
 java.lang.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(java.lang.String workspaceName)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchivaDavResourceLocator

public ArchivaDavResourceLocator(java.lang.String prefix,
                                 java.lang.String resourcePath,
                                 java.lang.String repositoryId,
                                 org.apache.jackrabbit.webdav.DavLocatorFactory davLocatorFactory)
Method Detail

getRepositoryId

public java.lang.String getRepositoryId()
Specified by:
getRepositoryId in interface RepositoryLocator

getPrefix

public java.lang.String getPrefix()
Specified by:
getPrefix in interface org.apache.jackrabbit.webdav.DavResourceLocator

getResourcePath

public java.lang.String getResourcePath()
Specified by:
getResourcePath in interface org.apache.jackrabbit.webdav.DavResourceLocator

getWorkspacePath

public java.lang.String getWorkspacePath()
Specified by:
getWorkspacePath in interface org.apache.jackrabbit.webdav.DavResourceLocator

getWorkspaceName

public java.lang.String getWorkspaceName()
Specified by:
getWorkspaceName in interface org.apache.jackrabbit.webdav.DavResourceLocator

isSameWorkspace

public boolean isSameWorkspace(org.apache.jackrabbit.webdav.DavResourceLocator locator)
Specified by:
isSameWorkspace in interface org.apache.jackrabbit.webdav.DavResourceLocator

isSameWorkspace

public boolean isSameWorkspace(java.lang.String workspaceName)
Specified by:
isSameWorkspace in interface org.apache.jackrabbit.webdav.DavResourceLocator

getHref

public java.lang.String getHref(boolean isCollection)
Specified by:
getHref in interface org.apache.jackrabbit.webdav.DavResourceLocator

isRootLocation

public boolean isRootLocation()
Specified by:
isRootLocation in interface org.apache.jackrabbit.webdav.DavResourceLocator

getFactory

public org.apache.jackrabbit.webdav.DavLocatorFactory getFactory()
Specified by:
getFactory in interface org.apache.jackrabbit.webdav.DavResourceLocator

getRepositoryPath

public java.lang.String getRepositoryPath()
Specified by:
getRepositoryPath in interface org.apache.jackrabbit.webdav.DavResourceLocator

hashCode

public int hashCode()
Computes the hash code from the href, which is built using the final fields prefix and resourcePath.

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code

equals

public boolean equals(java.lang.Object obj)
Equality of path is achieved if the specified object is a DavResourceLocator object with the same hash code.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare to
Returns:
true if the 2 objects are equal; false otherwise

getOrigResourcePath

public java.lang.String getOrigResourcePath()