FtpReceiverEndpoint (InternalEndpoint) 
---------------------------------------

                 Key: SM-1001
                 URL: https://issues.apache.org/activemq/browse/SM-1001
             Project: ServiceMix
          Issue Type: Improvement
            Reporter: Rabi
         Attachments: patch.txt

FtpReceiverEndpoint (InternalEndpoint) 

- Can accpet in-out mep for listing files
- Supports InOnly mep for get/mget operations...

Usage:

xbean configuration:
------------------------------
<beans xmlns:ftp="http://servicemix.apache.org/ftp/1.0";
       xmlns:b="http://servicemix.apache.org/samples/ftp-receiver";>

 <ftp:receiver service="b:ftpReceiver"
              endpoint="endpoint"
              uri="ftp://rabi:[EMAIL PROTECTED]">           
              
              <ftp:target>
              <ftp:exchange-target service="b:pipeline"/>
              </ftp:target>
</ftp:receiver>   


Input Message structure
---------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<ftp:input xmlns:ftp="http://servicemix.apache.org/ftp/1.0"; operation="mget" 
recursive="true" filter="*" relativeUri="/inbox">
</ftp:input>


Output for file listing
----------------------------

STATUS: 200
<?xml version='1.0' encoding='UTF-8'?>
<ftp:list xmlns:ftp="http://servicemix.apache.org/ftp/1.0";>
     <ftp:directory name="/http/inbox/data/inner">
            <ftp:file>/http/inbox/data/inner/tx.xml</ftp:file>
     </ftp:directory>
     <ftp:file>/http/inbox/data/servicemix.xml</ftp:file>
</ftp:list>

This is a very simple version. Please suggest on the improvements..

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to