Class WebsocketEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.openremote.container.web.socket.WebsocketEndpoint
- 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,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@UriEndpoint(scheme="ws",
title="Undertow Websocket",
syntax="ws:resourceUri",
consumerClass=WebsocketConsumer.class,
label="http,websocket")
public class WebsocketEndpoint
extends org.apache.camel.impl.DefaultEndpoint
-
Field Summary
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending -
Constructor Summary
ConstructorsConstructorDescriptionWebsocketEndpoint(WebsocketComponent component, String uri, String resourceUri, Map<String, Object> parameters) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(WebsocketConsumer consumer) org.apache.camel.ConsumercreateConsumer(org.apache.camel.Processor processor) org.apache.camel.Producervoiddisconnect(WebsocketConsumer consumer) booleanvoidsetResourceUri(String resourceUri) voidsetSendToAll(Boolean sendToAll) Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringMethods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.Service
start, stop
-
Constructor Details
-
WebsocketEndpoint
-
-
Method Details
-
getComponent
- Overrides:
getComponentin classorg.apache.camel.impl.DefaultEndpoint
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception - Throws:
Exception
-
createProducer
- Throws:
Exception
-
isSingleton
public boolean isSingleton() -
getWebsocketSessions
-
connect
- Throws:
Exception
-
disconnect
- Throws:
Exception
-
getSendToAll
-
setSendToAll
-
getResourceUri
-
setResourceUri
-