blob: bbbc46a20e15079b1b5b88ac5e5b516abd2c33b7 [file] [log] [blame]
<routes xmlns="http://camel.apache.org/schema/spring">
<route id="reset-raise-http-exception-flag">
<from uri="direct:reset-raise-http-exception-flag" />
<setProperty propertyName="raiseHttpExceptionFlag">
<simple resultType="java.lang.Boolean">true</simple>
</setProperty>
</route>
<route id="dump-loop-log-http-response">
<from uri="direct:dump-loop-log-http-response" />
<log loggingLevel="INFO"
message="${exchangeProperty[logMessage]} - ${header.CamelHttpResponseCode} : ${header.CamelHttpResponseText}" />
<choice>
<when>
<simple>${exchangeProperty[logComponent]} == null</simple>
<to
uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('${exchangeProperty[logMessage]} - ${header.CamelHttpResponseCode} : ${header.CamelHttpResponseText}','INFO',${exchangeProperty[loopObject]})" />
</when>
<otherwise>
<to
uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLogForComponent('${exchangeProperty[logMessage]} - ${header.CamelHttpResponseCode} : ${header.CamelHttpResponseText}','INFO','${exchangeProperty[logComponent]}',${exchangeProperty[loopObject]})" />
<setProperty propertyName="logComponent">
<constant>null</constant>
</setProperty>
</otherwise>
</choice>
</route>
</routes>