<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:spring="http://www.springframework.org/schema/beans"
       xmlns:file="http://www.mulesource.org/schema/mule/file/2.0"
    xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://www.mulesource.org/schema/mule/core/2.0 http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
       http://www.mulesource.org/schema/mule/file/2.0 http://www.mulesource.org/schema/mule/file/2.0/mule-file.xsd">

    <file:connector name="fileConnector"
            autoDelete="false"
            fileAge="1234"
            moveToDirectory="abc"
            moveToPattern="bcd"
            outputAppend="true"
            outputPattern="cde"
            pollingFrequency="2345"
            serialiseObjects="true"
            streaming="false">
        <!-- not tested as they force directory creation -->
      <!-- readFromDirectory="efg"
           writeToDirectory="fgh" -->
        <file:custom-filename-parser class="org.mule.transport.file.DummyFilenameParser"/>
    </file:connector>

    <file:connector name="secondConnector">
        <file:legacy-filename-parser/>
    </file:connector>

    <file:connector name="thirdConnector">
        <file:expression-filename-parser/>
    </file:connector>
    
    <endpoint name="ep1" address="test://ep1">
        <file:file-to-byte-array-transformer ignoreBadInput="true" name="test1" returnClass="java.lang.Object"/>
    </endpoint>

    <endpoint name="ep2" address="test://ep2">
        <file:file-to-string-transformer ignoreBadInput="true" name="test2" returnClass="java.lang.Object"/>
    </endpoint>
    

    <model>
        <service name="Test" initialState="stopped">
            <inbound>
                <file:inbound-endpoint path="./target" connector-ref="secondConnector">
                    <file:filename-regex-filter pattern="(^SemDirector_Report-\d)(.*)(tab$)" caseSensitive="false"/>
                </file:inbound-endpoint>
            </inbound>
        </service>
    </model>
</mule>