Package org.apache.activemq.blob
Class DefaultBlobDownloadStrategy
java.lang.Object
org.apache.activemq.blob.DefaultStrategy
org.apache.activemq.blob.DefaultBlobDownloadStrategy
- All Implemented Interfaces:
BlobDownloadStrategy
A default implementation of
BlobDownloadStrategy which uses the URL
class to download files or streams from a remote URL-
Field Summary
Fields inherited from class org.apache.activemq.blob.DefaultStrategy
transferPolicy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteFile(ActiveMQBlobMessage message) getInputStream(ActiveMQBlobMessage message) Methods inherited from class org.apache.activemq.blob.DefaultStrategy
createMessageURL, isSuccessfulCode
-
Constructor Details
-
DefaultBlobDownloadStrategy
-
-
Method Details
-
getInputStream
public InputStream getInputStream(ActiveMQBlobMessage message) throws IOException, jakarta.jms.JMSException - Specified by:
getInputStreamin interfaceBlobDownloadStrategy- Throws:
IOExceptionjakarta.jms.JMSException
-
deleteFile
- Specified by:
deleteFilein interfaceBlobDownloadStrategy- Throws:
IOExceptionjakarta.jms.JMSException
-