@ApplicationScoped public class WSActiveCollectionServer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WSActiveCollectionServer.ACMListener
This class manages the active collection listeners for a particular websocket
session.
|
| Constructor and Description |
|---|
WSActiveCollectionServer()
This is the default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ActiveCollectionManager |
getActiveCollectionManager()
This method returns the active collection manager.
|
void |
init()
This method initializes the active collection REST service.
|
void |
onClose(Session session)
This method closes a websocket connection.
|
void |
onMessage(String message,
Session session)
This method processes an inbound message on the websocket.
|
void |
onOpen(Session session)
This method handles a new websocket connection.
|
void |
setActiveCollectionManager(ActiveCollectionManager acm)
This method sets the active collection manager.
|
public WSActiveCollectionServer()
@PostConstruct public void init()
public void setActiveCollectionManager(ActiveCollectionManager acm)
acm - The active collection managerpublic ActiveCollectionManager getActiveCollectionManager()
public void onOpen(Session session)
session - The sessionpublic void onMessage(String message, Session session)
message - The messagesession - The associated websocket sessionpublic void onClose(Session session)
session - The sessionCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.