public class AnnotatedEndpointConnectionManager extends ConnectionManagerSupport implements org.springframework.beans.factory.BeanFactoryAware
ConnectionManagerSupport.start() and
ConnectionManagerSupport.stop() methods. If ConnectionManagerSupport.setAutoStartup(boolean) is set to true
this will be done automatically when the Spring ApplicationContext is refreshed.logger| Constructor and Description |
|---|
AnnotatedEndpointConnectionManager(Class<?> endpointClass,
String uriTemplate,
Object... uriVariables) |
AnnotatedEndpointConnectionManager(Object endpoint,
String uriTemplate,
Object... uriVariables) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeConnection() |
javax.websocket.WebSocketContainer |
getWebSocketContainer() |
protected boolean |
isConnected() |
protected void |
openConnection() |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setWebSocketContainer(javax.websocket.WebSocketContainer webSocketContainer) |
getPhase, getUri, isAutoStartup, isRunning, setAutoStartup, setPhase, start, startInternal, stop, stop, stopInternalpublic AnnotatedEndpointConnectionManager(Object endpoint, String uriTemplate, Object... uriVariables)
public void setWebSocketContainer(javax.websocket.WebSocketContainer webSocketContainer)
public javax.websocket.WebSocketContainer getWebSocketContainer()
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionprotected void openConnection()
throws Exception
openConnection in class ConnectionManagerSupportExceptionprotected void closeConnection()
throws Exception
closeConnection in class ConnectionManagerSupportExceptionprotected boolean isConnected()
isConnected in class ConnectionManagerSupport