Hi all,

I am trying to config an interception with criteria on BODY. My problem is
the body is an instance of InputStreamCache and my criteria is never
evaluate to true (I would like to evaluate a parameter in the POST request)

My context config :

<camelContext xmlns="http://camel.apache.org/schema/spring"; trace="true">
        <intercept>
                        
                        <when>
                                <simple>${body} contains 'Hello'</simple>
                        </when>
                        <to uri="log:Async_is_true?level=TRACE" />
                        
                        <stop />
                </intercept>
                <route>
                        
                        <from uri="servlet:///blabla?matchOnUriPrefix=true" />
                        <to
                        
uri="http4://localhost:2222blibli?bridgeEndpoint=true&amp;throwExceptionOnFailure=false"
/>
                </route>
</camelContext>

Anyone can help me please ?

Camel version : 2.10.3
Spring version :  3.0.7

Thank you!




--
View this message in context: 
http://camel.465427.n5.nabble.com/Spring-DSL-Intercept-criteria-body-tp5727784.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to