it.could.webdav
Class XMLRepository

java.lang.Object
  extended byit.could.webdav.DAVRepository
      extended byit.could.webdav.XMLRepository

public class XMLRepository
extends DAVRepository

A DAVRepository instance enforcing all DAVResources to be XML files.

Author:
Pier Fumagalli

Constructor Summary
XMLRepository(File root)
          Create a new XMLRepository instance.
 
Method Summary
 DAVResource getResource(URI uri)
          Return the DAVResource associated with a URI.
 
Methods inherited from class it.could.webdav.DAVRepository
addListener, getRepositoryURI, getResource, notify, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLRepository

public XMLRepository(File root)
              throws IOException

Create a new XMLRepository instance.

Method Detail

getResource

public DAVResource getResource(URI uri)
                        throws IOException

Return the DAVResource associated with a URI.

Overrides:
getResource in class DAVRepository
Parameters:
uri - an absolute or relative URI identifying the resource.
Returns:
a non-null DAVResource instance.
Throws:
IOException - If the resource could not be resolved.