org.apache.camel.component.cxf
Class CxfProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.camel.component.cxf.CxfProducer
- All Implemented Interfaces:
- org.apache.camel.AsyncProcessor, org.apache.camel.IsSingleton, org.apache.camel.Processor, org.apache.camel.Producer, org.apache.camel.Service, org.apache.camel.ShutdownableService
public class CxfProducer
- extends org.apache.camel.impl.DefaultProducer
- implements org.apache.camel.AsyncProcessor
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$
| Fields inherited from class org.apache.camel.impl.DefaultProducer |
log |
|
Method Summary |
org.apache.cxf.endpoint.Client |
getClient()
|
protected java.util.Map<java.lang.String,java.lang.Object> |
prepareRequest(org.apache.camel.Exchange camelExchange,
org.apache.cxf.message.Exchange cxfExchange)
|
void |
process(org.apache.camel.Exchange camelExchange)
This processor binds Camel exchange to a CXF exchange and
invokes the CXF client. |
boolean |
process(org.apache.camel.Exchange camelExchange,
org.apache.camel.AsyncCallback callback)
|
| 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, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| 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 |
CxfProducer
public CxfProducer(CxfEndpoint endpoint)
throws java.lang.Exception
- Constructor to create a CxfProducer. It will create a CXF client
object.
- Parameters:
endpoint - a CxfEndpoint that creates this producer
- Throws:
java.lang.Exception - any exception thrown during the creation of a
CXF client
process
public boolean process(org.apache.camel.Exchange camelExchange,
org.apache.camel.AsyncCallback callback)
- Specified by:
process in interface org.apache.camel.AsyncProcessor
process
public void process(org.apache.camel.Exchange camelExchange)
throws java.lang.Exception
- This processor binds Camel exchange to a CXF exchange and
invokes the CXF client.
- Specified by:
process in interface org.apache.camel.Processor
- Throws:
java.lang.Exception
prepareRequest
protected java.util.Map<java.lang.String,java.lang.Object> prepareRequest(org.apache.camel.Exchange camelExchange,
org.apache.cxf.message.Exchange cxfExchange)
throws java.lang.Exception
- Throws:
java.lang.Exception
getClient
public org.apache.cxf.endpoint.Client getClient()
Apache CAMEL