0 Replies Latest reply on May 29, 2012 1:25 PM by kcbabo

    Tooling for FTP Gateway

    kcbabo


      We support three flavors of FTP right now : FTP, SFTP, FTPS.  For the initial go at the tooling, I think we should just stick with FTP and add secure options (similar to advanced) later.  FTP works for both service bindings and reference bindings.  Like File, it is one-way only (consume and provide definition cannot be present on a single binding).

       

      Service binding options (consumer):

       

      <element name="host" type="string"  minOccurs="0" maxOccurs="1"/>
      <element name="port" type="int" minOccurs="0" maxOccurs="1"/>
      <element name="username" type="string" minOccurs="0" maxOccurs="1"/>
      <element name="password" type="string" minOccurs="0" maxOccurs="1"/>
      <element name="binary" type="boolean" minOccurs="0" maxOccurs="1"/>
      <element name="directory" type="string" />
      <element name="autoCreate" type="boolean" minOccurs="0" maxOccurs="1"/>
      <element name="fileName" type="string" minOccurs="0" maxOccurs="1"/>
      <element name="delete" type="boolean" minOccurs="0" maxOccurs="1"/>
      <element name="recursive" type="boolean" minOccurs="0" maxOccurs="1"/>
      <element name="preMove" type="string" minOccurs="0" maxOccurs="1"/>
      <element name="move" type="string" minOccurs="0" maxOccurs="1"/>
      <element name="moveFailed" type="string" minOccurs="0" maxOccurs="1"/>
      <element name="include" type="string" minOccurs="0" maxOccurs="1"/>
      <element name="exclude" type="string" minOccurs="0" maxOccurs="1"/>
      

       

      Reference binding options (producer):

       

      <element name="host" type="string"  minOccurs="0" maxOccurs="1"/>
      <element name="port" type="int" minOccurs="0" maxOccurs="1"/>
      <element name="username" type="string" minOccurs="0" maxOccurs="1"/>
      <element name="password" type="string" minOccurs="0" maxOccurs="1"/>
      <element name="binary" type="boolean" minOccurs="0" maxOccurs="1"/>
      <element name="directory" type="string" />
      <element name="autoCreate" type="boolean" minOccurs="0" maxOccurs="1"/>
      <element name="fileName" type="string" minOccurs="0" maxOccurs="1"/>
      <element name="fileExist" type="string" minOccurs="0" maxOccurs="1"/>
      <element name="tempPrefix" type="string" minOccurs="0" maxOccurs="1"/>
      

       

       

      Here's the Camel FTP doc page:

      http://camel.apache.org/ftp2.html

       

      Note that the Camel FTP config inherits from File, so some of the descriptions for File are applicable here as well:

      http://camel.apache.org/file2.html

       

      Here's the schema:

      https://github.com/jboss-switchyard/components/blob/master/camel/camel-core/src/main/resources/org/switchyard/component/camel/config/model/v1/camel-v1.xsd#L68