391
|
1 |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2 |
<!--
|
|
3 |
Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
4 |
Use is subject to license terms.
|
|
5 |
|
|
6 |
CDDL HEADER START
|
|
7 |
|
|
8 |
The contents of this file are subject to the terms of the
|
|
9 |
Common Development and Distribution License (the "License").
|
|
10 |
You may not use this file except in compliance with the License.
|
|
11 |
|
|
12 |
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
13 |
or http://www.opensolaris.org/os/licensing.
|
|
14 |
See the License for the specific language governing permissions
|
|
15 |
and limitations under the License.
|
|
16 |
|
|
17 |
When distributing Covered Code, include this CDDL HEADER in each
|
|
18 |
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
19 |
If applicable, add the following below this CDDL HEADER, with the
|
|
20 |
fields enclosed by brackets "[]" replaced with your own identifying
|
|
21 |
information: Portions Copyright [yyyy] [name of copyright owner]
|
|
22 |
|
|
23 |
CDDL HEADER END
|
|
24 |
-->
|
|
25 |
|
|
26 |
<interface xmlns="http://www.opensolaris.org/ns/adr" name="files">
|
|
27 |
|
|
28 |
<pragma domain="java" name="package"
|
|
29 |
value="org.opensolaris.os.vp.common.remotefile" />
|
|
30 |
|
|
31 |
<type name="FileSnapshot">
|
|
32 |
<field type="string" name="path" />
|
|
33 |
<field type="string" name="absolutePath" />
|
|
34 |
<field type="string" name="baseName" />
|
|
35 |
<field type="string" name="canonicalPath" />
|
|
36 |
<field type="boolean" name="absolute" />
|
|
37 |
<field type="boolean" name="canonical" />
|
|
38 |
<field type="boolean" name="exists" />
|
|
39 |
<field type="boolean" name="readable" />
|
|
40 |
<field type="boolean" name="writable" />
|
|
41 |
<field type="boolean" name="directory" />
|
|
42 |
<field type="boolean" name="file" />
|
|
43 |
<field type="boolean" name="hidden" />
|
|
44 |
<field type="time" name="lastModified" />
|
|
45 |
<field type="integer" name="length" />
|
|
46 |
<field type="integer" name="freeSpace" />
|
|
47 |
<field type="integer" name="totalSpace" />
|
|
48 |
<field type="integer" name="usableSpace" />
|
|
49 |
</type>
|
|
50 |
|
|
51 |
<api name="fileBrowser">
|
|
52 |
<version major="0" minor="1" />
|
|
53 |
|
|
54 |
<property name="Roots" access="ro">
|
|
55 |
<list typeref="FileSnapshot" />
|
|
56 |
</property>
|
|
57 |
|
|
58 |
<method name="getFile">
|
|
59 |
<result typeref="FileSnapshot" />
|
|
60 |
<error />
|
|
61 |
<argument type="string" name="name" />
|
|
62 |
</method>
|
|
63 |
|
|
64 |
<method name="getFiles">
|
|
65 |
<result>
|
|
66 |
<list typeref="FileSnapshot" />
|
|
67 |
</result>
|
|
68 |
<error />
|
|
69 |
<argument type="string" name="directory" />
|
|
70 |
</method>
|
|
71 |
</api>
|
|
72 |
</interface>
|