<?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"
	xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd">

	<int:gateway id="sampleGateway" 
	             service-interface="org.springframework.integration.history.MessageHistoryIntegrationTests.SampleGateway"
	             default-request-channel="bridgeInChannel"/>
	             
	<int:channel id="bridgeInChannel"/>
	
	<int:bridge id="testBridge" input-channel="bridgeInChannel" output-channel="headerEnricherChannel"/>
	
	
	<int:header-enricher id="testHeaderEnricher" input-channel="headerEnricherChannel" output-channel="chainChannel">
		<int:header name="foo" value="foo"/>
	</int:header-enricher>
	
	<int:chain id="sampleChain" input-channel="chainChannel" output-channel="filterChannel">
		<int:header-enricher>
			<int:header name="baz" value="baz"/>
		</int:header-enricher>
	</int:chain>
	
	<int:filter id="testFilter" input-channel="filterChannel" 
				output-channel="splitterChannel" expression="payload.equals('hello')"/>
				
	<int:splitter id="testSplitter" input-channel="splitterChannel" output-channel="aggregatorChannel"/>
	
	<int:aggregator id="testAggregator" input-channel="aggregatorChannel" output-channel="endOfThePipeChannel"/>
	
	<int:channel id="endOfThePipeChannel"/>
	
	<int:message-history/>

</beans>
