Package io.goobi.viewer.websockets
Class ConfigEditorEndpoint
java.lang.Object
io.goobi.viewer.websockets.ConfigEditorEndpoint
Endpoint for unlocking files opened in
AdminConfigEditorBean
when leaving a page-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onClose
(javax.websocket.Session session) Called when leaving a adminConfigEditor page.void
void
Accept messages containing a file path which is locked by the curren page and needs to be unlocked upon leaving the pagevoid
onOpen
(javax.websocket.Session session, javax.websocket.EndpointConfig config) Store id of http session
-
Constructor Details
-
ConfigEditorEndpoint
public ConfigEditorEndpoint()
-
-
Method Details
-
onOpen
public void onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig config) Store id of http session- Parameters:
session
-config
-
-
onMessage
Accept messages containing a file path which is locked by the curren page and needs to be unlocked upon leaving the page- Parameters:
message
- a json object string in the form "{'fileToLock' : '/path/to/config/file'}"
-
onClose
public void onClose(javax.websocket.Session session) Called when leaving a adminConfigEditor page. Unlocks the file set byonMessage(String)
for the session set byonOpen(Session, EndpointConfig)
usingAdminConfigEditorBean.unlockFile(Path, String)
- Parameters:
session
-
-
onError
-