Package io.goobi.viewer.websockets
Class DownloadTaskEndpoint
java.lang.Object
io.goobi.viewer.websockets.DownloadTaskEndpoint
Endpoint that maps HTTP session IDs to connected web sockets.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
static class
static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDownloadedFiles
(String pi, String downloadUrl) getDownloadFolder
(String pi, String downloadUrl) getMimetype
(String path) void
void
onClose
(javax.websocket.Session session) void
void
void
onOpen
(javax.websocket.Session session, javax.websocket.EndpointConfig config) void
-
Constructor Details
-
DownloadTaskEndpoint
public DownloadTaskEndpoint()
-
-
Method Details
-
onOpen
public void onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig config) -
onMessage
-
handleDownloadRequest
public void handleDownloadRequest(DownloadTaskEndpoint.SocketMessage message) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
startDownload
public void startDownload(DownloadTaskEndpoint.SocketMessage message) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getDownloadedFiles
public List<Path> getDownloadedFiles(String pi, String downloadUrl) throws PresentationException, IndexUnreachableException -
getDownloadFolder
public Path getDownloadFolder(String pi, String downloadUrl) throws PresentationException, IndexUnreachableException -
getMimetype
-
onClose
public void onClose(javax.websocket.Session session) -
onError
-