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 ofBlobDownloadStrategywhich 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 voiddeleteFile(ActiveMQBlobMessage message)InputStreamgetInputStream(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:
getInputStreamin interfaceBlobDownloadStrategy- Throws:
IOExceptionJMSException
-
deleteFile
public void deleteFile(ActiveMQBlobMessage message) throws IOException, JMSException
- Specified by:
deleteFilein interfaceBlobDownloadStrategy- Throws:
IOExceptionJMSException
-
-