public class DefaultBlobDownloadStrategy extends DefaultStrategy implements BlobDownloadStrategy
BlobDownloadStrategy
which uses the URL
class to download files or streams from a remote URLtransferPolicy
Constructor and Description |
---|
DefaultBlobDownloadStrategy(BlobTransferPolicy transferPolicy) |
Modifier and Type | Method and Description |
---|---|
void |
deleteFile(ActiveMQBlobMessage message) |
InputStream |
getInputStream(ActiveMQBlobMessage message) |
createMessageURL, isSuccessfulCode
public DefaultBlobDownloadStrategy(BlobTransferPolicy transferPolicy)
public InputStream getInputStream(ActiveMQBlobMessage message) throws IOException, JMSException
getInputStream
in interface BlobDownloadStrategy
IOException
JMSException
public void deleteFile(ActiveMQBlobMessage message) throws IOException, JMSException
deleteFile
in interface BlobDownloadStrategy
IOException
JMSException
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.