org.apache.servicemix.camel.nmr
Class ServiceMixProducer
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.servicemix.camel.nmr.ServiceMixProducer
- 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, org.apache.camel.StatefulService, org.apache.camel.SuspendableService, org.apache.servicemix.nmr.api.Endpoint
public class ServiceMixProducer
- extends org.apache.camel.impl.DefaultProducer
- implements org.apache.servicemix.nmr.api.Endpoint, org.apache.camel.AsyncProcessor
A Producer that handles incoming Camel exchanges by sending/receiving an NMR Exchange
| Fields inherited from class org.apache.camel.impl.DefaultProducer |
log |
| Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
| Fields inherited from interface org.apache.servicemix.nmr.api.Endpoint |
CHANNEL_SYNC_DELIVERY, ENDPOINT_NAME, INTERFACE_NAME, NAME, RUN_AS_SUBJECT, SERVICE_NAME, UNTARGETABLE, VERSION, WSDL_URL |
| Methods inherited from class org.apache.camel.impl.DefaultProducer |
createExchange, createExchange, createExchange, isSingleton, toString |
| Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, 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 |
ServiceMixProducer
public ServiceMixProducer(ServiceMixEndpoint endpoint,
org.apache.servicemix.nmr.api.NMR nmr)
process
public void process(org.apache.camel.Exchange exchange)
throws java.lang.Exception
- Specified by:
process in interface org.apache.camel.Processor
- Throws:
java.lang.Exception
process
public boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback asyncCallback)
- Specified by:
process in interface org.apache.camel.AsyncProcessor
process
public void process(org.apache.servicemix.nmr.api.Exchange exchange)
- Handle incoming NMR exchanges (responses to the exchanges sent in
process(org.apache.camel.Exchange, org.apache.camel.AsyncCallback)
- Specified by:
process in interface org.apache.servicemix.nmr.api.Endpoint
doStart
protected void doStart()
throws java.lang.Exception
- Overrides:
doStart in class org.apache.camel.impl.DefaultProducer
- Throws:
java.lang.Exception
doStop
protected void doStop()
throws java.lang.Exception
- Overrides:
doStop in class org.apache.camel.impl.DefaultProducer
- Throws:
java.lang.Exception
getEndpoint
public ServiceMixEndpoint getEndpoint()
- Access the matching
ServiceMixEndpoint
- Specified by:
getEndpoint in interface org.apache.camel.Producer- Overrides:
getEndpoint in class org.apache.camel.impl.DefaultProducer
setChannel
public void setChannel(org.apache.servicemix.nmr.api.Channel channel)
- Specified by:
setChannel in interface org.apache.servicemix.nmr.api.Endpoint
getContinuations
protected java.util.Map<java.lang.String,org.apache.servicemix.camel.nmr.ServiceMixProducer.Continuation> getContinuations()
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.