nl.hippo.client.webdav
Class DocumentPathImpl
java.lang.Object
nl.hippo.client.webdav.DocumentPathImpl
- All Implemented Interfaces:
- Serializable, DocumentPath
public class DocumentPathImpl
- extends Object
- implements DocumentPath
Represents a path in the repository.
methods
- getNamespace() => returns hippo.client.namespace from WebdavConfig
- getFilesPath() => returns hippo.client.filespath from WebdavConfig
- getRootPath() => returns getNameSpace() + getFilesPath() or getPrefixPath() + getFilesPath()
- getRelativePath() => returns the relative documentpath (getFullPath() - getRootPath())
- getFullPath() => returns getRootPath() + getRelativePath()
slashes
- getNamespace() -> without any slashes
- All other methods -> starts with slash and ends without slash
These rules are guaranteed even if the configuration isn't completely clean,
ie "namespace = /default/"
- See Also:
- Serialized Form
DocumentPathImpl
public DocumentPathImpl(String namespace,
String contextroot,
String filesPath,
String path,
boolean isRelative)
DocumentPathImpl
public DocumentPathImpl(String namespace,
String contextroot,
String filesPath,
String[] pathElems,
boolean isRelative)
getContextRoot
public String getContextRoot()
- Specified by:
getContextRoot in interface DocumentPath
getNamespace
public String getNamespace()
- Specified by:
getNamespace in interface DocumentPath
getFilesPath
public String getFilesPath()
- Specified by:
getFilesPath in interface DocumentPath
getRootPath
public String getRootPath()
- Specified by:
getRootPath in interface DocumentPath
getRelativePath
public String getRelativePath()
- Specified by:
getRelativePath in interface DocumentPath
getFullPath
public String getFullPath()
- Specified by:
getFullPath in interface DocumentPath
createAbsolutePath
public DocumentPath createAbsolutePath(String absolute)
- Specified by:
createAbsolutePath in interface DocumentPath
createAbsolutePath
public DocumentPath createAbsolutePath(String[] pathElems)
- Specified by:
createAbsolutePath in interface DocumentPath
createRelativePath
public DocumentPath createRelativePath(String relative)
- Specified by:
createRelativePath in interface DocumentPath
createRelativePath
public DocumentPath createRelativePath(String[] pathElems)
- Specified by:
createRelativePath in interface DocumentPath
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2006-2009 Hippo. All Rights Reserved.