Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.webdav.lib
Class WebdavResources  view WebdavResources download WebdavResources.java

java.lang.Object
  extended byorg.apache.webdav.lib.WebdavResources

public class WebdavResources
extends java.lang.Object

This WebdavResources class represents a set of WebDAV resources . Two WebdavResource instances are considered equal, if there getName() 55 method returns the same string.


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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hrefTable

java.util.Hashtable hrefTable
The resources for each href and its properties.

Constructor Detail

WebdavResources

public WebdavResources()
Default constuctor.


WebdavResources

public WebdavResources(WebdavResource resource)
This constuctor.

Method Detail

isEmpty

public boolean isEmpty()
Test if there is no resource.


isThereResourceName

public boolean isThereResourceName(java.lang.String resourceName)
Test if there is a resource called the specified resource name.


isThereResource

public boolean isThereResource(WebdavResource resource)
Test if there is a resource.


getResourceNames

public java.util.Enumeration getResourceNames()
Get an enumeration of the resource names.


getResources

public java.util.Enumeration getResources()
Get an enumeration of the resources.


list

public java.lang.String[] list()
Get an array of resource names.


listResources

public WebdavResource[] listResources()
Get an arraay of resources.


getResource

public WebdavResource getResource(java.lang.String resourceName)
Get an resource.


addResource

public void addResource(java.lang.String resourceName,
                        WebdavResource resource)
Maps the resource name to its resource. The resource name could be different from the displayname property. It's useful for representing itself or parent collection.


addResource

public void addResource(WebdavResource resource)
Add the specified resource.


removeResource

public WebdavResource removeResource(java.lang.String resourceName)
Remove the specified resource name.


removeAll

public void removeAll()
Remove all resources.


toString

public java.lang.String toString()
Return the string for this class.