@UriEndpoint(firstVersion="3.5.0",
scheme="vertx-websocket",
title="Vert.x WebSocket",
syntax="vertx-websocket:host:port/path",
category=WEBSOCKET)
public class VertxWebsocketEndpoint
extends org.apache.camel.support.DefaultEndpoint
| Constructor and Description |
|---|
VertxWebsocketEndpoint(String uri,
VertxWebsocketComponent component,
VertxWebsocketConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected void |
doStop() |
protected io.vertx.core.http.ServerWebSocket |
findPeerForConnectionKey(String connectionKey)
Finds a WebSocket associated with host for the given connection key
|
protected Map<String,io.vertx.core.http.ServerWebSocket> |
findPeersForHostPort()
Finds all WebSockets associated with a host matching this endpoint configured port
|
VertxWebsocketComponent |
getComponent() |
VertxWebsocketConfiguration |
getConfiguration() |
protected io.vertx.core.Vertx |
getVertx() |
protected Map<VertxWebsocketHostKey,VertxWebsocketHost> |
getVertxHostRegistry() |
protected io.vertx.core.http.WebSocket |
getWebSocket(org.apache.camel.Exchange exchange) |
protected boolean |
isManagedPort() |
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic VertxWebsocketEndpoint(String uri, VertxWebsocketComponent component, VertxWebsocketConfiguration configuration)
public VertxWebsocketComponent getComponent()
getComponent in class org.apache.camel.support.DefaultEndpointpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultEndpointExceptionpublic VertxWebsocketConfiguration getConfiguration()
protected io.vertx.core.Vertx getVertx()
protected io.vertx.core.http.WebSocket getWebSocket(org.apache.camel.Exchange exchange)
throws Exception
Exceptionprotected Map<VertxWebsocketHostKey,VertxWebsocketHost> getVertxHostRegistry()
protected io.vertx.core.http.ServerWebSocket findPeerForConnectionKey(String connectionKey)
protected Map<String,io.vertx.core.http.ServerWebSocket> findPeersForHostPort()
protected boolean isManagedPort()
Apache Camel