@UriEndpoint(scheme="websocket", syntax="websocket:host:port/resourceUri", consumerClass=WebsocketConsumer.class, label="http,websocket") public class WebsocketEndpoint extends org.apache.camel.impl.DefaultEndpoint
Constructor and Description |
---|
WebsocketEndpoint(WebsocketComponent component,
String uri,
String resourceUri,
Map<String,Object> parameters) |
Modifier and Type | Method and Description |
---|---|
void |
connect(WebsocketConsumer consumer) |
void |
connect(WebsocketProducer producer) |
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
void |
disconnect(WebsocketConsumer consumer) |
void |
disconnect(WebsocketProducer producer) |
protected void |
doStart() |
protected void |
doStop() |
String |
getAllowedOrigins() |
Integer |
getBufferSize() |
WebsocketComponent |
getComponent() |
String |
getFilterPath() |
List<org.eclipse.jetty.server.Handler> |
getHandlers() |
String |
getHost() |
Integer |
getMaxBinaryMessageSize() |
Integer |
getMaxIdleTime() |
Integer |
getMaxTextMessageSize() |
Integer |
getMinVersion() |
String |
getPath() |
Integer |
getPort() |
String |
getProtocol() |
String |
getResourceUri() |
Boolean |
getSendToAll() |
org.apache.camel.util.jsse.SSLContextParameters |
getSslContextParameters() |
String |
getStaticResources() |
URI |
getUri() |
boolean |
isCrossOriginFilterOn() |
boolean |
isEnableJmx() |
boolean |
isSessionSupport() |
boolean |
isSingleton() |
void |
setAllowedOrigins(String allowedOrigins) |
void |
setBufferSize(Integer bufferSize) |
void |
setCrossOriginFilterOn(boolean crossOriginFilterOn) |
void |
setEnableJmx(boolean enableJmx) |
void |
setFilterPath(String filterPath) |
void |
setHandlers(List<org.eclipse.jetty.server.Handler> handlers) |
void |
setHost(String host) |
void |
setMaxBinaryMessageSize(Integer maxBinaryMessageSize) |
void |
setMaxIdleTime(Integer maxIdleTime) |
void |
setMaxTextMessageSize(Integer maxTextMessageSize) |
void |
setMinVersion(Integer minVersion) |
void |
setPort(int port) |
void |
setPort(Integer port) |
void |
setResourceUri(String resourceUri) |
void |
setSendToAll(Boolean sendToAll) |
void |
setSessionSupport(boolean support) |
void |
setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters) |
void |
setStaticResources(String staticResources) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, 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 WebsocketComponent getComponent()
getComponent
in class org.apache.camel.impl.DefaultEndpoint
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public void connect(WebsocketConsumer consumer) throws Exception
Exception
public void disconnect(WebsocketConsumer consumer) throws Exception
Exception
public void connect(WebsocketProducer producer) throws Exception
Exception
public void disconnect(WebsocketProducer producer) throws Exception
Exception
public boolean isSingleton()
public URI getUri()
public Integer getPort()
public String getHost()
public void setHost(String host)
public void setPort(int port)
public String getStaticResources()
public void setStaticResources(String staticResources)
public Boolean getSendToAll()
public void setSendToAll(Boolean sendToAll)
public String getProtocol()
public String getPath()
public void setSessionSupport(boolean support)
public boolean isSessionSupport()
public Integer getBufferSize()
public void setBufferSize(Integer bufferSize)
public Integer getMaxIdleTime()
public void setMaxIdleTime(Integer maxIdleTime)
public Integer getMaxTextMessageSize()
public void setMaxTextMessageSize(Integer maxTextMessageSize)
public Integer getMaxBinaryMessageSize()
public void setMaxBinaryMessageSize(Integer maxBinaryMessageSize)
public Integer getMinVersion()
public void setMinVersion(Integer minVersion)
public List<org.eclipse.jetty.server.Handler> getHandlers()
public void setHandlers(List<org.eclipse.jetty.server.Handler> handlers)
public org.apache.camel.util.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters)
public boolean isEnableJmx()
public void setEnableJmx(boolean enableJmx)
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 void setPort(Integer port)
public String getResourceUri()
public void setResourceUri(String resourceUri)
protected void doStart() throws Exception
doStart
in class org.apache.camel.impl.DefaultEndpoint
Exception
Apache Camel