Created
May 28, 2013 00:59
-
-
Save ddossot/5659881 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="flow"> | |
<vm:inbound-endpoint path="test.in" | |
exchange-pattern="request-response" /> | |
<http:outbound-endpoint address="http://www.google.com/" | |
method="GET" exchange-pattern="request-response" /> | |
<choice> | |
<when | |
expression="#[message.inboundProperties['Content-Type'].contains('text/html')]"> | |
<logger message="when number one invoked" level="WARN" /> | |
</when> | |
<when | |
expression="#[message.inboundProperties['Content-Type'].contains('application/json')]"> | |
<logger message="when number two invoked" level="WARN" /> | |
</when> | |
<otherwise> | |
<logger message="otherwise invoked" level="WARN" /> | |
</otherwise> | |
</choice> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment