@UriEndpoint(scheme="cometd,cometds", title="CometD", syntax="cometd:protocol:host:port/channelName", consumerClass=CometdConsumer.class, label="http,websocket") public class CometdEndpoint extends DefaultEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
CometdEndpoint(CometdComponent component,
String uri,
String remaining,
Map<String,Object> parameters) |
Modifier and Type | Method and Description |
---|---|
boolean |
areSessionHeadersEnabled() |
void |
connect(CometdProducerConsumer prodcons) |
Consumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
void |
disconnect(CometdProducerConsumer prodcons) |
String |
getAllowedOrigins() |
String |
getBaseResource() |
CometdComponent |
getComponent()
Returns the component that created this endpoint.
|
String |
getFilterPath() |
int |
getInterval() |
int |
getLogLevel() |
int |
getMaxInterval() |
int |
getMultiFrameInterval() |
String |
getPath() |
int |
getPort() |
String |
getProtocol() |
int |
getTimeout() |
URI |
getUri() |
boolean |
isCrossOriginFilterOn() |
boolean |
isDisconnectLocalSession() |
boolean |
isJsonCommented() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
void |
setAllowedOrigins(String allowedOrigins) |
void |
setBaseResource(String baseResource) |
void |
setCrossOriginFilterOn(boolean crossOriginFilterOn) |
void |
setDisconnectLocalSession(boolean disconnectLocalSession) |
void |
setFilterPath(String filterPath) |
void |
setInterval(int interval) |
void |
setJsonCommented(boolean commented) |
void |
setLogLevel(int logLevel) |
void |
setMaxInterval(int maxInterval) |
void |
setMultiFrameInterval(int multiFrameInterval) |
void |
setSessionHeadersEnabled(boolean enable) |
void |
setTimeout(int timeout) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public Producer createProducer() throws Exception
Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
processor
- the given processorException
- can be thrownpublic void connect(CometdProducerConsumer prodcons) throws Exception
Exception
public void disconnect(CometdProducerConsumer prodcons) throws Exception
Exception
public CometdComponent getComponent()
DefaultEndpoint
getComponent
in class DefaultEndpoint
public boolean isSingleton()
IsSingleton
public String getPath()
public int getPort()
public String getProtocol()
public URI getUri()
public String getBaseResource()
public void setBaseResource(String baseResource)
public int getTimeout()
public void setTimeout(int timeout)
public int getInterval()
public void setInterval(int interval)
public int getMaxInterval()
public void setMaxInterval(int maxInterval)
public int getMultiFrameInterval()
public void setMultiFrameInterval(int multiFrameInterval)
public boolean isJsonCommented()
public void setJsonCommented(boolean commented)
public void setSessionHeadersEnabled(boolean enable)
public boolean areSessionHeadersEnabled()
public int getLogLevel()
public void setLogLevel(int logLevel)
public String getAllowedOrigins()
public void setAllowedOrigins(String allowedOrigins)
public boolean isCrossOriginFilterOn()
public void setCrossOriginFilterOn(boolean crossOriginFilterOn)
public String getFilterPath()
public void setFilterPath(String filterPath)
public boolean isDisconnectLocalSession()
public void setDisconnectLocalSession(boolean disconnectLocalSession)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.