public class WebdavResources
extends java.lang.Object
WebDAV resources
.
Two WebdavResource instances are considered equal, if there getName()
method returns the same string.Modifier and Type | Field and Description |
---|---|
(package private) java.util.Hashtable |
hrefTable
The resources for each href and its properties.
|
Constructor and Description |
---|
WebdavResources()
Default constuctor.
|
WebdavResources(WebdavResource resource)
This constuctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addResource(java.lang.String resourceName,
WebdavResource resource)
Maps the resource name to its resource.
|
void |
addResource(WebdavResource resource)
Add the specified resource.
|
WebdavResource |
getResource(java.lang.String resourceName)
Get an resource.
|
java.util.Enumeration |
getResourceNames()
Get an enumeration of the resource names.
|
java.util.Enumeration |
getResources()
Get an enumeration of the resources.
|
boolean |
isEmpty()
Test if there is no resource.
|
boolean |
isThereResource(WebdavResource resource)
Test if there is a resource.
|
boolean |
isThereResourceName(java.lang.String resourceName)
Test if there is a resource called the specified resource name.
|
java.lang.String[] |
list()
Get an array of resource names.
|
WebdavResource[] |
listResources()
Get an arraay of resources.
|
void |
removeAll()
Remove all resources.
|
WebdavResource |
removeResource(java.lang.String resourceName)
Remove the specified resource name.
|
java.lang.String |
toString()
Return the string for this class.
|
java.util.Hashtable hrefTable
public WebdavResources()
public WebdavResources(WebdavResource resource)
resource
- A resource to add.public boolean isEmpty()
public boolean isThereResourceName(java.lang.String resourceName)
resourceName
- The resource name to check.public boolean isThereResource(WebdavResource resource)
resource
- The specified resource.public java.util.Enumeration getResourceNames()
public java.util.Enumeration getResources()
public java.lang.String[] list()
public WebdavResource[] listResources()
public WebdavResource getResource(java.lang.String resourceName)
resourceName
- The resource name.public void addResource(java.lang.String resourceName, WebdavResource resource)
resourceName
- The resource name.resource
- The resource.addResource(WebdavResource)
public void addResource(WebdavResource resource)
resource
- The resource to add.public WebdavResource removeResource(java.lang.String resourceName)
resourceName
- The specified resource name.public void removeAll()
public java.lang.String toString()
toString
in class java.lang.Object