Package org.apache.activemq.blob
Class DefaultBlobDownloadStrategy
- java.lang.Object
-
- org.apache.activemq.blob.DefaultStrategy
-
- org.apache.activemq.blob.DefaultBlobDownloadStrategy
-
- All Implemented Interfaces:
BlobDownloadStrategy
public class DefaultBlobDownloadStrategy extends DefaultStrategy implements BlobDownloadStrategy
A default implementation ofBlobDownloadStrategy
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 Constructor Description DefaultBlobDownloadStrategy(BlobTransferPolicy transferPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteFile(ActiveMQBlobMessage message)
InputStream
getInputStream(ActiveMQBlobMessage message)
-
Methods inherited from class org.apache.activemq.blob.DefaultStrategy
createMessageURL, isSuccessfulCode
-
-
-
-
Constructor Detail
-
DefaultBlobDownloadStrategy
public DefaultBlobDownloadStrategy(BlobTransferPolicy transferPolicy)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream(ActiveMQBlobMessage message) throws IOException, JMSException
- Specified by:
getInputStream
in interfaceBlobDownloadStrategy
- Throws:
IOException
JMSException
-
deleteFile
public void deleteFile(ActiveMQBlobMessage message) throws IOException, JMSException
- Specified by:
deleteFile
in interfaceBlobDownloadStrategy
- Throws:
IOException
JMSException
-
-