org.apache.camel.component.cometd
Class CometdEndpoint

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.component.cometd.CometdEndpoint
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId

public class CometdEndpoint
extends org.apache.camel.impl.DefaultEndpoint

Endpoint for Camel Cometd.


Constructor Summary
CometdEndpoint(CometdComponent component, String uri, String remaining, Map<String,Object> parameters)
           
 
Method Summary
 void connect(CometdProducerConsumer prodcons)
           
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.Producer createProducer()
           
 void disconnect(CometdProducerConsumer prodcons)
           
 String getBaseResource()
           
 CometdComponent getComponent()
           
 int getInterval()
           
 int getLogLevel()
           
 int getMaxInterval()
           
 int getMultiFrameInterval()
           
 String getPath()
           
 int getPort()
           
 String getProtocol()
           
 int getTimeout()
           
 URI getUri()
           
 boolean isJsonCommented()
           
 boolean isSingleton()
           
 void setBaseResource(String baseResource)
           
 void setInterval(int interval)
           
 void setJsonCommented(boolean commented)
           
 void setLogLevel(int logLevel)
           
 void setMaxInterval(int maxInterval)
           
 void setMultiFrameInterval(int multiFrameInterval)
           
 void setTimeout(int timeout)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, 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, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

CometdEndpoint

public CometdEndpoint(CometdComponent component,
                      String uri,
                      String remaining,
                      Map<String,Object> parameters)
Method Detail

createProducer

public org.apache.camel.Producer createProducer()
                                         throws Exception
Throws:
Exception

createConsumer

public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
                                         throws Exception
Throws:
Exception

connect

public void connect(CometdProducerConsumer prodcons)
             throws Exception
Throws:
Exception

disconnect

public void disconnect(CometdProducerConsumer prodcons)
                throws Exception
Throws:
Exception

getComponent

public CometdComponent getComponent()
Overrides:
getComponent in class org.apache.camel.impl.DefaultEndpoint

isSingleton

public boolean isSingleton()

getPath

public String getPath()

getPort

public int getPort()

getProtocol

public String getProtocol()

getUri

public URI getUri()

getBaseResource

public String getBaseResource()

setBaseResource

public void setBaseResource(String baseResource)

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)

getInterval

public int getInterval()

setInterval

public void setInterval(int interval)

getMaxInterval

public int getMaxInterval()

setMaxInterval

public void setMaxInterval(int maxInterval)

getMultiFrameInterval

public int getMultiFrameInterval()

setMultiFrameInterval

public void setMultiFrameInterval(int multiFrameInterval)

isJsonCommented

public boolean isJsonCommented()

setJsonCommented

public void setJsonCommented(boolean commented)

getLogLevel

public int getLogLevel()

setLogLevel

public void setLogLevel(int logLevel)


Apache CAMEL