# FileResource type

The FileResource type defines an URI to a file with optional on-the-fly decompression.

The defining Java class is `net.brutex.xservices.types.FileResource` .

    <xs:complexType name="FileResourceType">
    	<xs:sequence>
        	<xs:element default="FILE" name="type" type="tns:type"/>
            <xs:element name="uri" type="xs:string"/>
       </xs:sequence>
    </xs:complexType>

Available types:

FILE: URI points to a local file resource. Examples: c:\temp\something.txt, c:/dir/another.file, /home/brian/file

URL: File from URL (http, https, ftp, ...). Example: http://brutex.net/file.pdf

GZIP and BZIP2: File from a local file system with on-the-fly decompression.

    <resource>
    	<type>FILE</type>
        <uri>c:\temp\xservices.war</uri>
    </resource>