org.apache.camel.component.cxf
Class CxfProducer

java.lang.Object
  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.

Version:
$Revision: 19607 $

Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultProducer
log
 
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

CxfProducer

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

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

process

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

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

getClient

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


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