org.apache.servicemix.camel.nmr
Class ServiceMixProducer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducer
          extended by 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.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


Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultProducer
log
 
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
 
Constructor Summary
ServiceMixProducer(ServiceMixEndpoint endpoint, org.apache.servicemix.nmr.api.NMR nmr)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
protected  java.util.Map<java.lang.String,org.apache.servicemix.camel.nmr.ServiceMixProducer.Continuation> getContinuations()
           
 ServiceMixEndpoint getEndpoint()
          Access the matching ServiceMixEndpoint
 void process(org.apache.camel.Exchange exchange)
           
 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)
 boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback asyncCallback)
           
 void setChannel(org.apache.servicemix.nmr.api.Channel channel)
           
 
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, createExchange, 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
 

Constructor Detail

ServiceMixProducer

public ServiceMixProducer(ServiceMixEndpoint endpoint,
                          org.apache.servicemix.nmr.api.NMR nmr)
Method Detail

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-2011 The Apache Software Foundation. All Rights Reserved.