Monday, 21 April 2014

Mule: How to parse HTTP Query String in Mule?

URL: /GetMonitoringInfo?IP=10.2.2.12

Mule Expression Language:
#[message.inboundProperties['http.query.params']['IP']]

In Flow:
<logger message="#[message.inboundProperties['http.query.params']['IP']] " level="INFO" doc:name="Logger"/>

Output: 10.2.2.12