org.apache.camel.component.cometd
Class CometdProducer

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducer
          extended by org.apache.camel.component.cometd.CometdProducer
All Implemented Interfaces:
CometdProducerConsumer, 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

public class CometdProducer
extends org.apache.camel.impl.DefaultProducer
implements CometdProducerConsumer

A Producer to send messages using Cometd and Bayeux protocol.


Nested Class Summary
static class CometdProducer.ProducerService
           
 
Field Summary
 
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
 
Constructor Summary
CometdProducer(CometdEndpoint endpoint)
           
 
Method Summary
 org.cometd.server.BayeuxServerImpl getBayeux()
           
 CometdEndpoint getEndpoint()
          Gets the endpoint
protected  CometdProducer.ProducerService getProducerService()
           
 void process(org.apache.camel.Exchange exchange)
           
 void setBayeux(org.cometd.server.BayeuxServerImpl bayeux)
          Sets the bayeux to use.
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, createExchange, doStart, doStop, isSingleton, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CometdProducer

public CometdProducer(CometdEndpoint endpoint)
Method Detail

start

public void start()
           throws Exception
Specified by:
start in interface org.apache.camel.Service
Overrides:
start in class org.apache.camel.support.ServiceSupport
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface org.apache.camel.Service
Overrides:
stop in class org.apache.camel.support.ServiceSupport
Throws:
Exception

process

public void process(org.apache.camel.Exchange exchange)
Specified by:
process in interface org.apache.camel.Processor

getEndpoint

public CometdEndpoint getEndpoint()
Description copied from interface: CometdProducerConsumer
Gets the endpoint

Specified by:
getEndpoint in interface CometdProducerConsumer
Specified by:
getEndpoint in interface org.apache.camel.Producer
Overrides:
getEndpoint in class org.apache.camel.impl.DefaultProducer

getBayeux

public org.cometd.server.BayeuxServerImpl getBayeux()

getProducerService

protected CometdProducer.ProducerService getProducerService()

setBayeux

public void setBayeux(org.cometd.server.BayeuxServerImpl bayeux)
Description copied from interface: CometdProducerConsumer
Sets the bayeux to use.

Specified by:
setBayeux in interface CometdProducerConsumer


Apache Camel