You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Rabi (JIRA)" <ji...@apache.org> on 2008/03/26 17:51:32 UTC

[jira] Updated: (SM-1001) FtpReceiverEndpoint (InternalEndpoint)

     [ https://issues.apache.org/activemq/browse/SM-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rabi updated SM-1001:
---------------------

    Attachment: patch.txt
                patch1.txt

A changed patch. I have added one utility class (StreamUtil) to servicemix-core. Not sure if the same functionality is available somewhere else. I am using this to convert stream to byte array. can someone validate this please....


Thanks,
Rabi

> FtpReceiverEndpoint (InternalEndpoint) 
> ---------------------------------------
>
>                 Key: SM-1001
>                 URL: https://issues.apache.org/activemq/browse/SM-1001
>             Project: ServiceMix
>          Issue Type: Improvement
>            Reporter: Rabi
>         Attachments: patch.txt, patch.txt, patch1.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:Mpw3w9VC@localhost">           
>               
>               <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.