| |
|
| java.lang.Object com.ibm.webdav.CollectionMember
CollectionMember | public class CollectionMember implements java.io.Serializable(Code) | | A CollectionMember encapsulates a Resource in a collection along with
a number of live properties that might be useful to client applications.
Since WebDAV requires the use of a Collection's properties to determine
the members of a collection, we might as well make use of the properties returned
so that clients don't have to make a lot of unnecessary server requests. The
properties collected in the CollectionMember are those used by the WebDAV
Explorer.
author: Jim Amsden <jamsden@us.ibm.com> |
CollectionMember | public CollectionMember(Collection parent, Resource resource, MultiStatus initialProperties) throws WebDAVException(Code) | | Create a CollectionMember for a resource. Include it parent and some
convenient DAV properties.
Parameters: parent - the parent collection Parameters: resource - the member resource of the parent Parameters: initialProperties - a MultiStatus containing some useful DAV properties |
CollectionMember | public CollectionMember(Resource resource) throws WebDAVException(Code) | | Create a CollectionMember for a resource. The resource is
a root collection that has no parent or properties
Parameters: resource - the member resource |
getName | public String getName()(Code) | | Return the name of the Resource in this CollectionMember relative to its parent. Use
getResource().getURL().toString() to get the full URL.
the name of this member relative to its parent collection |
getParent | public Collection getParent()(Code) | | Return the parent of this CollectionMember. i.e., the Collection
it's associated Resource is contained in.
the parent collection |
getProperties | public PropertyResponse getProperties()(Code) | | Return the properties of the Resource in this CollectionMember. These
properties are retained only for convenience of client applications. The
properties can always be obtained using getProperties().
A PropertyResponse containing some useful DAV properties See Also: com.ibm.webdav.Resource.getProperties |
getResource | public Resource getResource()(Code) | | Return the Resource represented by this CollectionMember.
the resource associted with this CollectionMember |
|
|
|