<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:int="http://www.springframework.org/schema/integration"
	xmlns:int-sftp="http://www.springframework.org/schema/integration/sftp"
	xsi:schemaLocation="http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/integration/sftp https://www.springframework.org/schema/integration/sftp/spring-integration-sftp.xsd">

	<bean id="ftpSessionFactory"
		class="org.springframework.integration.sftp.session.DefaultSftpSessionFactory">
		<property name="host" value="localhost"/>
		<property name="user" value="ftptest"/>
		<property name="password" value="ftptest"/>
	</bean>

	<int:channel id="inbound" />

	<int-sftp:outbound-gateway id="gatewayLS"
		session-factory="ftpSessionFactory"
		request-channel="inbound"
		command="mget"
		command-options=""
		expression="payload"
		local-directory="/tmp/out"
		reply-channel="resultChannel"/>

	<int:channel id="resultChannel">
		<int:queue />
	</int:channel>
</beans>
