camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Damage_Shadow <sche...@outlook.com>
Subject MockEndpoint can either returnReplyBody or returnReplyHeader not both
Date Wed, 12 Oct 2016 13:49:00 GMT
Is there any way to return whole message with body and headers in case of
mocked endpoint org.apache.camel.component.mock.MockEndpoint. I can see only 

/**
     * Set the expression which value will be set to the message body
     * @param expression which is use to set the message body 
     */
    public void returnReplyBody(Expression expression) {
        this.defaultProcessor = ProcessorBuilder.setBody(expression);
    }
    
    /**
     * Set the expression which value will be set to the message header
     * @param headerName that will be set value
     * @param expression which is use to set the message header 
     */
    public void returnReplyHeader(String headerName, Expression expression)
{
        this.defaultProcessor = ProcessorBuilder.setHeader(headerName,
expression);
    }
    



--
View this message in context: http://camel.465427.n5.nabble.com/MockEndpoint-can-either-returnReplyBody-or-returnReplyHeader-not-both-tp5788688.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message