Subversion Repositories XServices

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
59 brianR 1
<?xml version="1.0" encoding="UTF-8"?>
2
<section>
3
<title>FileResource type</title>
4
			<para>The FileResource type defines an URI to a file with optional on-the-fly decompression.</para>
5
			<para>
6
				The defining Java class is
7
				<ulink
8
					url="javadoc/net/brutex/xservices/types/FileResource.html">
9
					<classname>net.brutex.xservices.types.FileResource</classname>
10
				</ulink>
11
				.
12
			</para>
13
 
14
			<programlisting
15
				language="xml"><![CDATA[
16
<xs:complexType name="FileResourceType">
17
	<xs:sequence>
18
    	<xs:element default="FILE" name="type" type="tns:type"/>
19
        <xs:element name="uri" type="xs:string"/>
20
   </xs:sequence>
21
</xs:complexType>]]>
22
			</programlisting>
23
			<para>Available types:</para>
24
			<para>FILE: URI points to a local file resource. Examples: c:\temp\something.txt, c:/dir/another.file, /home/brian/file</para>
25
			<para>URL: File from URL (http, https, ftp, ...). Example: http://brutex.net/file.pdf</para>
26
			<para>GZIP and BZIP2: File from a local file system with on-the-fly decompression.</para>
27
			<programlisting
28
				language="xml"><![CDATA[
29
<resource>
30
	<type>FILE</type>
31
    <uri>c:\temp\xservices.war</uri>
32
</resource>]]>
33
			</programlisting>
34
		</section>