Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<jetty:connector name="Jetty" doc:name="Jetty" configFile="jetty-config.xml" />
<mule-xml:xpath-filter name="XPathFilter" pattern="//product" expectedValue="1"/>
<flow name="xpath3">
<jetty:inbound-endpoint exchange-pattern="request-response" address="http://0.0.0.0:8080/xpath3" connector-ref="Jetty"/>
<expression-transformer expression="xpath3('//@id',payload,'NODESET')" />
<json:object-to-json-transformer />
</flow>
<flow name="xpath2">
<jetty:inbound-endpoint exchange-pattern="request-response" address="http://0.0.0.0:8080/xpath2" connector-ref="Jetty" />
<expression-transformer expression="xpath('//@id')" />
</flow>
<flow name="xpathExtractor">
<jetty:inbound-endpoint exchange-pattern="request-response" address="http://0.0.0.0:8080/extractor-transformer" connector-ref="Jetty" />
<mule-xml:xpath-extractor-transformer expression="//@id" resultType="NODESET"/>
<json:object-to-json-transformer />
</flow>
<flow name="xpathFilter">
<jetty:inbound-endpoint exchange-pattern="request-response" address="http://0.0.0.0:8080/filter" connector-ref="Jetty" />
<filter ref="XPathFilter" doc:name="Filter Reference"/>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment