public class WebsocketEndpoint extends DefaultEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
WebsocketEndpoint(WebsocketComponent component,
String uri,
String remaining,
Map<String,Object> parameters) |
Modifier and Type | Method and Description |
---|---|
void |
connect(WebsocketConsumer consumer) |
void |
connect(WebsocketProducer producer) |
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(WebsocketConsumer consumer) |
void |
disconnect(WebsocketProducer producer) |
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
doStop()
Implementations override this method to support customized start/stop.
|
String |
getAllowedOrigins() |
WebsocketComponent |
getComponent()
Returns the component that created this endpoint.
|
String |
getFilterPath() |
List<org.eclipse.jetty.server.Handler> |
getHandlers() |
String |
getHost() |
String |
getPath() |
Integer |
getPort() |
String |
getProtocol() |
Boolean |
getSendToAll() |
SSLContextParameters |
getSslContextParameters() |
String |
getStaticResources() |
URI |
getUri() |
boolean |
isCrossOriginFilterOn() |
boolean |
isEnableJmx() |
boolean |
isSessionSupport() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
void |
setAllowedOrigins(String allowedOrigins) |
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 |
setPort(int port) |
void |
setSendToAll(Boolean sendToAll) |
void |
setSessionSupport(boolean support) |
void |
setSslContextParameters(SSLContextParameters sslContextParameters) |
void |
setStaticResources(String staticResources) |
configureConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public WebsocketComponent getComponent()
DefaultEndpoint
getComponent
in class DefaultEndpoint
public Consumer createConsumer(Processor processor) throws Exception
Endpoint
processor
- the given processorException
- can be thrownpublic Producer createProducer() throws Exception
Endpoint
Exception
- can be thrownpublic 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()
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 List<org.eclipse.jetty.server.Handler> getHandlers()
public void setHandlers(List<org.eclipse.jetty.server.Handler> handlers)
public SSLContextParameters getSslContextParameters()
public void setSslContextParameters(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)
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class DefaultEndpoint
Exception
ServiceSupport.doStop()
protected void doStop() throws Exception
ServiceSupport
ServiceSupport.doStop()
method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext
is shutting down.doStop
in class DefaultEndpoint
Exception
ServiceSupport.doStart()
Apache CAMEL