Package io.goobi.viewer.model.job.mq
Class DownloadExternalResourceHandler
java.lang.Object
io.goobi.viewer.model.job.mq.DownloadExternalResourceHandler
- All Implemented Interfaces:
MessageHandler<MessageStatus>
public class DownloadExternalResourceHandler
extends Object
implements MessageHandler<MessageStatus>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(ViewerMessage message, MessageQueueManager queueManager) call this method to execute the ticketstatic ViewerMessagecreateMessage(String pi, String url) getDownloadedFiles(String pi, String downloadUrl, String downloadId) voidsetStorageBean(ApplicationBean storageBean) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.goobi.viewer.controller.mq.MessageHandler
call
-
Field Details
-
ALLOWED_FILE_EXTENSIONS
-
-
Constructor Details
-
DownloadExternalResourceHandler
public DownloadExternalResourceHandler()
-
-
Method Details
-
call
Description copied from interface:MessageHandlercall this method to execute the ticket- Specified by:
callin interfaceMessageHandler<MessageStatus>- Parameters:
message- The ticket to handlequeueManager- reference to to manage the queue- Returns:
- V
-
getDownloadedFiles
public List<Path> getDownloadedFiles(String pi, String downloadUrl, String downloadId) throws PresentationException, IndexUnreachableException -
getMessageHandlerName
- Specified by:
getMessageHandlerNamein interfaceMessageHandler<MessageStatus>
-
createMessage
-
getStorageBean
-
setStorageBean
-