org.apache.activemq.blob
Class DefaultBlobDownloadStrategy

java.lang.Object
  extended by org.apache.activemq.blob.DefaultStrategy
      extended by org.apache.activemq.blob.DefaultBlobDownloadStrategy
All Implemented Interfaces:
BlobDownloadStrategy

public class DefaultBlobDownloadStrategy
extends DefaultStrategy
implements 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
DefaultBlobDownloadStrategy(BlobTransferPolicy transferPolicy)
           
 
Method Summary
 void deleteFile(ActiveMQBlobMessage message)
           
 InputStream getInputStream(ActiveMQBlobMessage message)
           
 
Methods inherited from class org.apache.activemq.blob.DefaultStrategy
createMessageURL, isSuccessfulCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBlobDownloadStrategy

public DefaultBlobDownloadStrategy(BlobTransferPolicy transferPolicy)
Method Detail

getInputStream

public InputStream getInputStream(ActiveMQBlobMessage message)
                           throws IOException,
                                  JMSException
Specified by:
getInputStream in interface BlobDownloadStrategy
Throws:
IOException
JMSException

deleteFile

public void deleteFile(ActiveMQBlobMessage message)
                throws IOException,
                       JMSException
Specified by:
deleteFile in interface BlobDownloadStrategy
Throws:
IOException
JMSException


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.