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) |
java.io.InputStream |
getInputStream(ActiveMQBlobMessage message) |
createMessageURL, isSuccessfulCode
public DefaultBlobDownloadStrategy(BlobTransferPolicy transferPolicy)
public java.io.InputStream getInputStream(ActiveMQBlobMessage message) throws java.io.IOException, javax.jms.JMSException
getInputStream
in interface BlobDownloadStrategy
java.io.IOException
javax.jms.JMSException
public void deleteFile(ActiveMQBlobMessage message) throws java.io.IOException, javax.jms.JMSException
deleteFile
in interface BlobDownloadStrategy
java.io.IOException
javax.jms.JMSException
Copyright © 2005-2012. All Rights Reserved.