xref: /AOO42X/main/offapi/com/sun/star/ucb/WebDAVContentProvider.idl (revision d7a630b93db4316516c543e21eb4f4faf6d62bb4)
1d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5d1766043SAndrew Rist * distributed with this work for additional information
6d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14d1766043SAndrew Rist * software distributed under the License is distributed on an
15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17d1766043SAndrew Rist * specific language governing permissions and limitations
18d1766043SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_ucb_WebDAVContentProvider_idl__
24cdf0e10cSrcweir#define __com_sun_star_ucb_WebDAVContentProvider_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_ucb_XContentProvider_idl__
27cdf0e10cSrcweir#include <com/sun/star/ucb/XContentProvider.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir//=============================================================================
31cdf0e10cSrcweir
32cdf0e10cSrcweirmodule com { module sun { module star { module ucb {
33cdf0e10cSrcweir
34cdf0e10cSrcweir//=============================================================================
35cdf0e10cSrcweir/** The WebDAV Content Provider (DCP) implements a <type>ContentProvider</type>
36cdf0e10cSrcweir    for the <type>UniversalContentBroker</type> (UCB).
37cdf0e10cSrcweir
38cdf0e10cSrcweir    <p>It provides access to WebDAV and standard HTTP servers. The DCP
39cdf0e10cSrcweir    communicates with the server using the WebDAV protocol which is an
40*a893be29SPedro Giffuni    extension to the HTTP protocol or using the plain HTTP protocol in case
41cdf0e10cSrcweir    the server  is not WebDAV enabled.
42cdf0e10cSrcweir
43cdf0e10cSrcweir    @see com::sun::star::ucb::Content
44cdf0e10cSrcweir*/
45cdf0e10cSrcweirpublished service WebDAVContentProvider
46cdf0e10cSrcweir{
47cdf0e10cSrcweir    //-------------------------------------------------------------------------
48cdf0e10cSrcweir    /** provides two types of content: a Folder or Document which corresponds
49cdf0e10cSrcweir        to a collection or non-collection (nodes and leafs) in WebDAV
50cdf0e10cSrcweir        respectively.
51cdf0e10cSrcweir
52cdf0e10cSrcweir        <p>
53cdf0e10cSrcweir
54cdf0e10cSrcweir        <b>DCP Contents</b>
55cdf0e10cSrcweir        <ol>
56cdf0e10cSrcweir        <li>
57cdf0e10cSrcweir        A DCP Folder (<type>WebDAVFolderContent</type>) is a container for
58cdf0e10cSrcweir        other DCP Folders or Documents.
59cdf0e10cSrcweir        </li>
60cdf0e10cSrcweir        <li>
61cdf0e10cSrcweir        A DCP Document (<type>WebDAVDocumentContent</type>) is a container for
62cdf0e10cSrcweir        Document data/content. The data/content may be anything, a WebDAV
63cdf0e10cSrcweir        server, like an HTTP server, does not necessarily mandate what type of
64cdf0e10cSrcweir        data/content may be contained within Documents. The type of data/content
65cdf0e10cSrcweir        is defined by the MediaType property which is different from the content
66cdf0e10cSrcweir        type returned from the getContentType method. The MediaType property is
67cdf0e10cSrcweir        mapped to the equivalent WebDAV property and the WebDAV server
68cdf0e10cSrcweir        calculates the value.
69cdf0e10cSrcweir        </li>
70cdf0e10cSrcweir        </ol>
71cdf0e10cSrcweir
72cdf0e10cSrcweir        <p><b>URL Scheme for DCP Contents</b>
73cdf0e10cSrcweir
74cdf0e10cSrcweir        <p>Each DCP content has an identifier corresponding to the following
75cdf0e10cSrcweir        scheme:
76cdf0e10cSrcweir
77cdf0e10cSrcweir            <ul>
78cdf0e10cSrcweir            <li>
79cdf0e10cSrcweir            vnd.sun.star.webdav://host:port/&lt;path&gt; where &lt;path&gt; is
80cdf0e10cSrcweir            a hierarchical path of the form &lt;name&gt;/.../&lt;name&gt; and
81cdf0e10cSrcweir            where &lt;name&gt; is a string encoded according to the URL
82cdf0e10cSrcweir            conventions.
83cdf0e10cSrcweir            </li>
84cdf0e10cSrcweir            </ul>
85cdf0e10cSrcweir
86cdf0e10cSrcweir        <p>It is also possible to use standard HTTP-URLs. In this case the
87cdf0e10cSrcweir        implementation will determine by itself, if the requested resource
88cdf0e10cSrcweir        is DAV enabled.
89cdf0e10cSrcweir
90cdf0e10cSrcweir        <p>Examples:
91cdf0e10cSrcweir
92cdf0e10cSrcweir        <ul>
93cdf0e10cSrcweir        <li>
94cdf0e10cSrcweir        vnd.sun.star.webdav://localhost/davhome/ ( a DAV collection )
95cdf0e10cSrcweir        </li>
96cdf0e10cSrcweir        <li>
97cdf0e10cSrcweir        vnd.sun.star.webdav://dav.foo.com/Documents/report.sdw
98cdf0e10cSrcweir        </li>
99cdf0e10cSrcweir        <li>
100cdf0e10cSrcweir        http://dav.foo.com/Documents/report.sdw
101cdf0e10cSrcweir        </li>
102cdf0e10cSrcweir        </ul>
103cdf0e10cSrcweir
104cdf0e10cSrcweir        </p>
105cdf0e10cSrcweir     */
106cdf0e10cSrcweir    interface com::sun::star::ucb::XContentProvider;
107cdf0e10cSrcweir};
108cdf0e10cSrcweir
109cdf0e10cSrcweir//=============================================================================
110cdf0e10cSrcweir
111cdf0e10cSrcweir}; }; }; };
112cdf0e10cSrcweir
113cdf0e10cSrcweir#endif
114