| org.apache.cocoon.components.source.impl.WebDAVSource
WebDAVSource | public class WebDAVSource extends AbstractLogEnabled implements Source,TraversableSource,ModifiableSource,ModifiableTraversableSource,InspectableSource,MoveableSource(Code) | | A source implementation to get access to WebDAV repositories.
Protocol syntax
webdav://[user[:password]@]host[:port][/path][?cocoon:webdav-depth][&cocoon:webdav-action]
-
cocoon:webdav-depth allows to specify the default depth
to use during initialization of the webdav resource.
-
cocoon:webdav-action allows to specify a default action
to take upon initialization of the webdav resource.
version: $Id: WebDAVSource.java 479296 2006-11-26 06:28:51Z antonio $ |
copyTo | public void copyTo(Source source) throws SourceException(Code) | | Copy the current source to a specified destination.
Parameters: source - throws: SourceException - If an exception occurs during the copy. |
delete | public void delete() throws SourceException(Code) | | Delete this source (unimplemented).
See Also: org.apache.excalibur.source.ModifiableSource.delete |
exists | public boolean exists()(Code) | | Does this source actually exist ?
true if the resource exists. |
getChild | public Source getChild(String childName) throws SourceException(Code) | | Get a collection child.
See Also: org.apache.excalibur.source.TraversableSource.getChild(java.lang.String) |
getChildren | public Collection getChildren() throws SourceException(Code) | | Get the collection children.
See Also: org.apache.excalibur.source.TraversableSource.getChildren |
getContentLength | public long getContentLength()(Code) | | Return the content length of the content or -1 if the length is
unknown
|
getInputStream | public InputStream getInputStream() throws IOException, SourceException(Code) | | Return an InputStream object to read from the source.
This is the data at the point of invocation of this method,
so if this is Modifiable, you might get different content
from two different invocations.
|
getLastModified | public long getLastModified()(Code) | | Get the last modification date.
The last modification in milliseconds since January 1, 1970 GMTor 0 if it is unknown |
getMimeType | public String getMimeType()(Code) | | The mime-type of the content described by this object.
If the source is not able to determine the mime-type by itself
this can be null .
|
getName | public String getName()(Code) | | Get the name of this resource.
See Also: org.apache.excalibur.source.TraversableSource.getName |
getOutputStream | public OutputStream getOutputStream() throws IOException(Code) | | Get an OutputStream where raw bytes can be written to.
The signification of these bytes is implementation-dependent and
is not restricted to a serialized XML document.
a stream to write to |
getParent | public Source getParent() throws SourceException(Code) | | Get the parent.
See Also: org.apache.excalibur.source.TraversableSource.getParent |
getScheme | public String getScheme()(Code) | | Get the scheme for this Source.
|
getSecureURI | protected String getSecureURI()(Code) | | Return the URI securely, without username and password
|
getSourceProperties | public SourceProperty[] getSourceProperties() throws SourceException(Code) | | Returns a enumeration of the properties
Enumeration of SourceProperty throws: SourceException - If an exception occurs. |
getSourceProperty | public SourceProperty getSourceProperty(String namespace, String name) throws SourceException(Code) | | Returns a property from a source.
Parameters: namespace - Namespace of the property Parameters: name - Name of the property Property of the source. throws: SourceException - If an exception occurs. |
getURI | public String getURI()(Code) | | Return the unique identifer for this source
|
getValidity | public SourceValidity getValidity()(Code) | | Get the Validity object. This can either wrap the last modification
date or the expires information or...
If it is currently not possible to calculate such an information
null is returned.
|
isCollection | public boolean isCollection()(Code) | | Check if this source is a collection.
See Also: org.apache.excalibur.source.TraversableSource.isCollection |
makeCollection | public void makeCollection() throws SourceException(Code) | | Create the collection, if it doesn't exist.
See Also: org.apache.excalibur.source.ModifiableTraversableSource.makeCollection |
moveTo | public void moveTo(Source source) throws SourceException(Code) | | Move the current source to a specified destination.
Parameters: source - throws: SourceException - If an exception occurs during the move. |
refresh | public void refresh()(Code) | | Refresh the content of this object after the underlying data
content has changed.
|
removeSourceProperty | public void removeSourceProperty(String namespace, String name) throws SourceException(Code) | | Remove a specified source property.
Parameters: namespace - Namespace of the property. Parameters: name - Name of the property. throws: SourceException - If an exception occurs. |
setSourceProperty | public void setSourceProperty(SourceProperty sourceproperty) throws SourceException(Code) | | Sets a property for a source.
Parameters: sourceproperty - Property of the source throws: SourceException - If an exception occurs during this operation |
|
|