Package io.goobi.viewer.websockets
Class CampaignEndpoint
java.lang.Object
io.goobi.viewer.websockets.CampaignEndpoint
Endpoint that maps HTTP session IDs to connected web sockets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if the given http session id has a registered lock.voidvoidvoidvoidonOpen(Session session, EndpointConfig config) static voidremoveSessionLock(String sessionId) Removes a registered crowdsourcing page lock after session end and notify the assiciated websocket session that the session has ended.
-
Constructor Details
-
CampaignEndpoint
public CampaignEndpoint()
-
-
Method Details
-
onOpen
-
onMessage
- Throws:
IOExceptionDAOException
-
onClose
-
onError
-
removeSessionLock
Removes a registered crowdsourcing page lock after session end and notify the assiciated websocket session that the session has ended.- Parameters:
sessionId- HTTP session ID whose lock should be removed- Throws:
DAOExceptionIOException
-
hasLock
Checks if the given http session id has a registered lock.- Parameters:
sessionId- HTTP session ID to check- Returns:
- true if given sesisonId has a registered lock; false otherwise
-