|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Serviceable
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public void dispose()
dispose
in interface Disposable
public String getContentString(String uri) throws ProcessingException
Repository
getContentString
in interface Repository
uri
- the uri of the resource.
ProcessingException
public InputStream getContentStream(String uri) throws ProcessingException
Repository
getContentStream
in interface Repository
uri
- the uri of the resource.
ProcessingException
public Document getContentDOM(String uri) throws ProcessingException
Repository
getContentDOM
in interface Repository
uri
- the uri of the resource.
ProcessingException
public boolean saveContent(String uri, String content)
Repository
saveContent
in interface Repository
uri
- 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 Repository
uri
- 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 Repository
uri
- 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 Repository
uri
- the uri of the resource.content
- the content to initialize the resource with.
public boolean exists(String uri)
Repository
exists
in interface Repository
uri
- the uri of the document.
public boolean copy(String uri, String dest, boolean recurse, boolean overwrite)
Repository
copy
in interface Repository
uri
- 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 Repository
uri
- 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 Repository
uri
- the uri of the resource.
public boolean makeCollection(String uri, boolean recursive)
Repository
makeCollection
in interface Repository
uri
- 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 Repository
public RepositoryTransactionHelper getTransactionHelper()
getTransactionHelper
in interface Repository
public RepositoryVersioningHelper getVersioningHelper()
getVersioningHelper
in interface Repository
public String getAbsoluteURI(String uri)
uri
- the uri to get a versioning helper for.
public CredentialsToken getCredentials()
Repository
getCredentials
in interface Repository
public void setCredentials(CredentialsToken credentials)
Repository
setCredentials
in interface Repository
credentials
- the credentials to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |