camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Tam" <email.w...@gmail.com>
Subject CamelTemplate.extractResultBody question
Date Wed, 03 Oct 2007 02:49:15 GMT
In org.apache.camel.CamelTemplate, shouldn't it just return null if
result.getOut().getBody() is null?  Why does it return the IN body as
a result?


   protected Object extractResultBody(E result) {
        Object answer = null;
        if (result != null) {
            answer = result.getOut().getBody();
            if (answer == null) {
                answer = result.getIn().getBody();
            }
        }

Regards,
William

Mime
View raw message