|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.webdav.lib.WebdavResources
This WebdavResources class represents WebDAV resources in a collection.
Field Summary | |
(package private) java.util.Hashtable |
hrefTable
The resources for each href and its properties. |
Constructor Summary | |
WebdavResources()
Default constuctor. |
|
WebdavResources(WebdavResource resource)
This constuctor. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.util.Hashtable hrefTable
Constructor Detail |
public WebdavResources()
public WebdavResources(WebdavResource resource)
resource
- A resource to add.Method Detail |
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |