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);
}
Aggregations