<?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:servlet="http://www.mulesource.org/schema/mule/servlet/2.0"
       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/servlet/2.0 http://www.mulesource.org/schema/mule/servlet/2.0/mule-servlet.xsd
               http://www.mulesource.org/schema/mule/file/2.0 http://www.mulesource.org/schema/mule/file/2.0/mule-file.xsd">

    <endpoint name="restFileEndpoint" address="file://./.mule/restFile"/>

    <model name="samples">

        <service name="restTest">
            <inbound>
                <!-- transformers are already defined in hello-http-config.xml -->
                <inbound-endpoint transformer-refs="HttpRequestToParameter" 
                                  address="servlet://restPUTTest"
                                  responseTransformer-refs="PlainTextResponseTransformer"/>
            </inbound>
            <pooled-component>
                <prototype-object class="org.mule.example.rest.RestTester">
                    <property key="prefix" value="Received "/>
                </prototype-object>
            </pooled-component>
            <outbound>
                <outbound-pass-through-router>
                    <outbound-endpoint ref="restFileEndpoint"/>
                </outbound-pass-through-router>
            </outbound>
        </service>

    </model>

</mule>
