usr/src/apis/file.xml
author David Powell <David.Powell@sun.com>
Wed, 16 Dec 2009 19:06:12 -0800
changeset 401 fc1223edbd8d
parent 391 71abce159a62
child 545 7a29a25b92e2
permissions -rw-r--r--
13421 apache: o.o.o.rad.ContainerException: system error: error talking to slave 13426 TLS transport auto-generates readable private keys 13429 file browsing API hard codes incorrect attributes

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
 Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 Use is subject to license terms.

 CDDL HEADER START

  The contents of this file are subject to the terms of the
  Common Development and Distribution License (the "License").
  You may not use this file except in compliance with the License.
 
  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  or http://www.opensolaris.org/os/licensing.
  See the License for the specific language governing permissions
  and limitations under the License.
 
  When distributing Covered Code, include this CDDL HEADER in each
  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  If applicable, add the following below this CDDL HEADER, with the
  fields enclosed by brackets "[]" replaced with your own identifying
  information: Portions Copyright [yyyy] [name of copyright owner]

 CDDL HEADER END
-->

<interface xmlns="http://www.opensolaris.org/ns/adr" name="files">

	<pragma domain="java" name="package"
	    value="org.opensolaris.os.vp.common.remotefile" />

	<type name="FileSnapshot">
		<field type="string" name="path" />
		<field type="string" name="absolutePath" />
		<field type="string" name="baseName" />
		<field type="string" name="canonicalPath" />
		<field type="boolean" name="absolute" />
		<field type="boolean" name="canonical" />
		<field type="boolean" name="exists" />
		<field type="boolean" name="readable" />
		<field type="boolean" name="writable" />
		<field type="boolean" name="directory" />
		<field type="boolean" name="file" />
		<field type="boolean" name="hidden" />
		<field type="time" name="lastModified" />
		<field type="long" name="length" />
		<field type="long" name="freeSpace" />
		<field type="long" name="totalSpace" />
		<field type="long" name="usableSpace" />
	</type>

	<api name="fileBrowser">
		<version major="0" minor="1" />

		<property name="Roots" access="ro">
			<list typeref="FileSnapshot" />
		</property>

		<method name="getFile">
			<result typeref="FileSnapshot" />
			<error />
			<argument type="string" name="name" />
		</method>

		<method name="getFiles">
			<result>
				<list typeref="FileSnapshot" />
			</result>
			<error />
			<argument type="string" name="directory" />
		</method>
	</api>
</interface>