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

    Constructors
    Constructor
    Description
    WebsocketEndpoint(WebsocketComponent component, String uri, String resourceUri, Map<String,Object> parameters)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.apache.camel.Consumer
    createConsumer(org.apache.camel.Processor processor)
     
    org.apache.camel.Producer
     
    void
     
     
     
     
     
    boolean
     
    void
    setResourceUri(String resourceUri)
     
    void
    setSendToAll(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, toString

    Methods 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, 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 Details

  • Method Details

    • getComponent

      public WebsocketComponent getComponent()
      Overrides:
      getComponent in class org.apache.camel.impl.DefaultEndpoint
    • createConsumer

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

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

      public boolean isSingleton()
    • getWebsocketSessions

      public WebsocketSessions getWebsocketSessions()
    • connect

      public void connect(WebsocketConsumer consumer) throws Exception
      Throws:
      Exception
    • disconnect

      public void disconnect(WebsocketConsumer consumer) throws Exception
      Throws:
      Exception
    • getSendToAll

      public Boolean getSendToAll()
    • setSendToAll

      public void setSendToAll(Boolean sendToAll)
    • getResourceUri

      public String getResourceUri()
    • setResourceUri

      public void setResourceUri(String resourceUri)