Search in sources :

Example 1 with DefaultCxfMessageMapper

use of org.apache.camel.component.cxf.common.message.DefaultCxfMessageMapper in project camel by apache.

the class CamelDestination method incoming.

protected void incoming(org.apache.camel.Exchange camelExchange) {
    LOG.debug("server received request: ", camelExchange);
    DefaultCxfMessageMapper beanBinding = new DefaultCxfMessageMapper();
    org.apache.cxf.message.Message inMessage = beanBinding.createCxfMessageFromCamelExchange(camelExchange, headerFilterStrategy);
    inMessage.put(CamelTransportConstants.CAMEL_EXCHANGE, camelExchange);
    ((MessageImpl) inMessage).setDestination(this);
    // Handling the incoming message
    // The response message will be send back by the outgoing chain
    incomingObserver.onMessage(inMessage);
}
Also used : Message(org.apache.cxf.message.Message) DefaultCxfMessageMapper(org.apache.camel.component.cxf.common.message.DefaultCxfMessageMapper) MessageImpl(org.apache.cxf.message.MessageImpl)

Aggregations

DefaultCxfMessageMapper (org.apache.camel.component.cxf.common.message.DefaultCxfMessageMapper)1 Message (org.apache.cxf.message.Message)1 MessageImpl (org.apache.cxf.message.MessageImpl)1