Package io.goobi.viewer.websockets
Class DownloadTaskEndpoint.SocketMessage
java.lang.Object
io.goobi.viewer.websockets.DownloadTaskEndpoint.SocketMessage
- Enclosing class:
- DownloadTaskEndpoint
-
Constructor Summary
ConstructorDescriptionSocketMessage
(DownloadTaskEndpoint.Action action, DownloadTaskEndpoint.Status status, String pi, String url) -
Method Summary
Modifier and TypeMethodDescriptionbuildAnswer
(DownloadTaskEndpoint.SocketMessage message, DownloadTaskEndpoint.Status status) getFiles()
getPi()
long
long
getUrl()
void
setAction
(DownloadTaskEndpoint.Action action) void
setErrorMessage
(String errorMessage) void
void
setMessageQueueId
(String messageQueueId) void
void
setProgress
(long progress) void
setResourceSize
(long resourceSize) void
setStatus
(DownloadTaskEndpoint.Status status) void
toString()
-
Constructor Details
-
SocketMessage
public SocketMessage() -
SocketMessage
public SocketMessage(DownloadTaskEndpoint.Action action, DownloadTaskEndpoint.Status status, String pi, String url)
-
-
Method Details
-
buildAnswer
public static DownloadTaskEndpoint.SocketMessage buildAnswer(DownloadTaskEndpoint.SocketMessage message, DownloadTaskEndpoint.Status status) -
getJsonSignature
-
getAction
-
setAction
-
getStatus
-
setStatus
-
getPi
-
setPi
-
getUrl
-
setUrl
-
getProgress
public long getProgress() -
setProgress
public void setProgress(long progress) -
getResourceSize
public long getResourceSize() -
setResourceSize
public void setResourceSize(long resourceSize) -
getMessageQueueId
-
setMessageQueueId
-
getErrorMessage
-
setErrorMessage
-
getFiles
-
setFiles
-
toString
-