org.apache.camel.component.cometd
Class CometdProducer

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

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

A Producer to send messages using Cometd and Bayeux protocol.

Version:
$Revision$

Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultProducer
log
 
Constructor Summary
CometdProducer(CometdEndpoint endpoint)
           
 
Method Summary
 org.cometd.server.AbstractBayeux getBayeux()
           
 CometdEndpoint getEndpoint()
          Gets the endpoint
 void process(org.apache.camel.Exchange exchange)
           
 void setBayeux(org.cometd.server.AbstractBayeux 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.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, 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.impl.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.impl.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.AbstractBayeux getBayeux()

setBayeux

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

Specified by:
setBayeux in interface CometdProducerConsumer


Apache CAMEL