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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidonClose(jakarta.websocket.Session session) Called when leaving a adminConfigEditor page.voidvoidAccept messages containing a file path which is locked by the curren page and needs to be unlocked upon leaving the pagevoidonOpen(jakarta.websocket.Session session, jakarta.websocket.EndpointConfig config) Store id of http session 
- 
Constructor Details
- 
ConfigEditorEndpoint
public ConfigEditorEndpoint() 
 - 
 - 
Method Details
- 
onOpen
public void onOpen(jakarta.websocket.Session session, jakarta.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(jakarta.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
 
 -