Class CxfProducer

  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducer
          extended by org.apache.camel.component.cxf.CxfProducer
All Implemented Interfaces:
IsSingleton, Processor, Producer, Service, ShutdownableService

public class CxfProducer
extends DefaultProducer

CxfProducer binds a Camel exchange to a CXF exchange, acts as a CXF client, and sends the request to a CXF to a server. Any response will be bound to Camel exchange.

$Revision: 19607 $

Field Summary
Fields inherited from class org.apache.camel.impl.DefaultProducer
Constructor Summary
CxfProducer(CxfEndpoint endpoint)
          Constructor to create a CxfProducer.
Method Summary
 org.apache.cxf.endpoint.Client getClient()
 void process(Exchange camelExchange)
          This processor binds Camel exchange to a CXF exchange and invokes the CXF client.
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, createExchange, doStart, doStop, getEndpoint, isSingleton, toString
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.Service
start, stop

Constructor Detail


public CxfProducer(CxfEndpoint endpoint)
            throws Exception
Constructor to create a CxfProducer. It will create a CXF client object.

endpoint - a CxfEndpoint that creates this producer
Exception - any exception thrown during the creation of a CXF client
Method Detail


public void process(Exchange camelExchange)
             throws Exception
This processor binds Camel exchange to a CXF exchange and invokes the CXF client.

camelExchange - the message exchange
Exception - if an internal processing error has occurred.


public org.apache.cxf.endpoint.Client getClient()

Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.