|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.repository.impl.WebDAVRepository
public class WebDAVRepository
A repository implementation for WebDAV.
| Field Summary | |
|---|---|
static String |
REPO_BASE_CONF
The name of the repository location configuration element |
| Constructor Summary | |
|---|---|
WebDAVRepository()
|
|
| Method Summary | |
|---|---|
void |
configure(Configuration configuration)
|
boolean |
copy(String uri,
String dest,
boolean recurse,
boolean overwrite)
copy a resource |
boolean |
createResource(String uri,
String content)
create a new resource |
void |
dispose()
|
boolean |
exists(String uri)
checks wether resource exists |
String |
getAbsoluteURI(String uri)
get the absolute URI of a given path |
Document |
getContentDOM(String uri)
get content as DOM |
InputStream |
getContentStream(String uri)
get content as Stream |
String |
getContentString(String uri)
get content as String |
CredentialsToken |
getCredentials()
get the credentials used against the repository |
RepositoryPropertyHelper |
getPropertyHelper()
get a WebDAV property helper |
RepositoryTransactionHelper |
getTransactionHelper()
get a WebDAV transaction helper |
RepositoryVersioningHelper |
getVersioningHelper()
get a WebDAV versioning helper |
void |
initialize()
|
boolean |
makeCollection(String uri,
boolean recursive)
make collection |
boolean |
move(String uri,
String dest,
boolean recurse,
boolean overwrite)
move a resource |
boolean |
remove(String uri)
remove resource |
boolean |
saveContent(String uri,
Node node)
save content |
boolean |
saveContent(String uri,
Source source)
save content |
boolean |
saveContent(String uri,
String content)
save content |
void |
service(ServiceManager manager)
|
void |
setCredentials(CredentialsToken credentials)
set the credentials to be used against the repository |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REPO_BASE_CONF
| Constructor Detail |
|---|
public WebDAVRepository()
| Method Detail |
|---|
public void service(ServiceManager manager)
throws ServiceException
service in interface ServiceableServiceException
public void configure(Configuration configuration)
throws ConfigurationException
configure in interface ConfigurableConfigurationException
public void initialize()
throws Exception
initialize in interface InitializableExceptionpublic void dispose()
dispose in interface Disposable
public String getContentString(String uri)
throws ProcessingException
Repository
getContentString in interface Repositoryuri - the uri of the resource.
ProcessingException
public InputStream getContentStream(String uri)
throws ProcessingException
Repository
getContentStream in interface Repositoryuri - the uri of the resource.
ProcessingException
public Document getContentDOM(String uri)
throws ProcessingException
Repository
getContentDOM in interface Repositoryuri - the uri of the resource.
ProcessingException
public boolean saveContent(String uri,
String content)
Repository
saveContent in interface Repositoryuri - the uri of the resource.content - the to be saved content given as a String.
public boolean saveContent(String uri,
Node node)
Repository
saveContent in interface Repositoryuri - the uri of the resource.node - the to be saved content given as a W3C Node object.
public boolean saveContent(String uri,
Source source)
Repository
saveContent in interface Repositoryuri - the uri of the resource.source - the to be saved content given as a Excalibur Source object.
public boolean createResource(String uri,
String content)
Repository
createResource in interface Repositoryuri - the uri of the resource.content - the content to initialize the resource with.
public boolean exists(String uri)
Repository
exists in interface Repositoryuri - the uri of the document.
public boolean copy(String uri,
String dest,
boolean recurse,
boolean overwrite)
Repository
copy in interface Repositoryuri - the uri of the resource.dest - the destination of the copy.recurse - if true recursively creates parent collections if not existantoverwrite - whether to overwrite the destination if it exists.
public boolean move(String uri,
String dest,
boolean recurse,
boolean overwrite)
Repository
move in interface Repositoryuri - the uri of the resource.dest - the destination of the move.recurse - if true recursively creates parent collections if not existantoverwrite - whether to overwrite the destination if it exists.
public boolean remove(String uri)
Repository
remove in interface Repositoryuri - the uri of the resource.
public boolean makeCollection(String uri,
boolean recursive)
Repository
makeCollection in interface Repositoryuri - the uri of the collection.recursive - a boolean indicating wether
the operation should fail if the parent
collection does not exist or wether the
complete path should be created.
public RepositoryPropertyHelper getPropertyHelper()
getPropertyHelper in interface Repositorypublic RepositoryTransactionHelper getTransactionHelper()
getTransactionHelper in interface Repositorypublic RepositoryVersioningHelper getVersioningHelper()
getVersioningHelper in interface Repositorypublic String getAbsoluteURI(String uri)
uri - the uri to get a versioning helper for.
public CredentialsToken getCredentials()
Repository
getCredentials in interface Repositorypublic void setCredentials(CredentialsToken credentials)
Repository
setCredentials in interface Repositorycredentials - the credentials to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||