|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.could.webdav.DAVRepository
A simple class representing a File
based WebDAV repository.
Constructor Summary | |
DAVRepository(File root)
Create a new DAVRepository instance. |
Method Summary | |
void |
addListener(DAVListener listener)
Add a new DAVListener to the list of instances notified by
this DAVRepository . |
protected URI |
getRepositoryURI()
Return the URI representing the root directory of this
DAVRepository . |
DAVResource |
getResource(String name)
Return the DAVResource associated with the given name. |
DAVResource |
getResource(URI uri)
Return the DAVResource associated with a URI . |
protected void |
notify(DAVResource resource,
int event)
Notify all configured DAVListener s of an event. |
void |
removeListener(DAVListener listener)
Remove a DAVListener from the list of instances notified by
this DAVRepository . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DAVRepository(File root) throws IOException
Create a new DAVRepository
instance.
root
- The File
identifying the root of the repository.
IOException
- If the specified root is not a directory.
NullPointerExceptoin
- If the specified root was null.Method Detail |
protected URI getRepositoryURI()
Return the URI
representing the root directory of this
DAVRepository
.
URI
instance.public DAVResource getResource(String name) throws IOException
Return the DAVResource
associated with the given name.
name
- a String
identifying the resource name.
DAVResource
instance.
IOException
- If the resource could not be resolved.public DAVResource getResource(URI uri) throws IOException
Return the DAVResource
associated with a URI
.
If the specified URI
is relative it will be resolved against
the root of this DAVRepository
.
uri
- an absolute or relative URI
identifying the resource.
DAVResource
instance.
IOException
- If the resource could not be resolved.public void addListener(DAVListener listener)
Add a new DAVListener
to the list of instances notified by
this DAVRepository
.
public void removeListener(DAVListener listener)
Remove a DAVListener
from the list of instances notified by
this DAVRepository
.
protected void notify(DAVResource resource, int event)
Notify all configured DAVListener
s of an event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |