How to use Sftplite
03-04-2017
Abstract
• SFTP Light connector. It takes credentials in all
calls. opens and closes a connection on each
call to the server. If you need a persistent
connection to an SFTP server, you would be
better served by using the SFTP transport in
mule. .
• .mflow
• <?xml version="1.0" encoding="UTF-8"?>
• <mule xmlns:sftplite="http://www.mulesoft.org/schema/mule/sftplite" xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
• xmlns:spring="http://www.springframework.org/schema/beans"
• xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
• xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
• http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
• http://www.mulesoft.org/schema/mule/sftplite http://www.mulesoft.org/schema/mule/sftplite/current/mule-sftplite.xsd
• http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
• <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
• <sftplite:config name="Sftplite" doc:name="Sftplite"/>
• <flow name="sftpliteFlow">
• <http:listener config-ref="HTTP_Listener_Configuration" path="/sftplite" allowedMethods="GET" doc:name="HTTP"/>
• <sftplite:get-folder config-ref="Sftplite" hostName="10.0.1.66" password="*****" path="/inbound" userName="*****" doc:name="Sftplite"/>
• <logger message="#[payload]" level="INFO" doc:name="Logger"/>
• <set-payload value="#['folder upadated']" doc:name="Set Payload"/>
• </flow>
• </mule>
• </flow>
• </mule>

Sftplite

  • 1.
    How to useSftplite 03-04-2017
  • 2.
    Abstract • SFTP Lightconnector. It takes credentials in all calls. opens and closes a connection on each call to the server. If you need a persistent connection to an SFTP server, you would be better served by using the SFTP transport in mule. .
  • 4.
    • .mflow • <?xmlversion="1.0" encoding="UTF-8"?> • <mule xmlns:sftplite="http://www.mulesoft.org/schema/mule/sftplite" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" • xmlns:spring="http://www.springframework.org/schema/beans" • xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" • xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd • http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd • http://www.mulesoft.org/schema/mule/sftplite http://www.mulesoft.org/schema/mule/sftplite/current/mule-sftplite.xsd • http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd"> • <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/> • <sftplite:config name="Sftplite" doc:name="Sftplite"/> • <flow name="sftpliteFlow"> • <http:listener config-ref="HTTP_Listener_Configuration" path="/sftplite" allowedMethods="GET" doc:name="HTTP"/> • <sftplite:get-folder config-ref="Sftplite" hostName="10.0.1.66" password="*****" path="/inbound" userName="*****" doc:name="Sftplite"/> • <logger message="#[payload]" level="INFO" doc:name="Logger"/> • <set-payload value="#['folder upadated']" doc:name="Set Payload"/> • </flow> • </mule> • </flow> • </mule>