org.apache.activemq.blob
Class BlobUploader

java.lang.Object
  extended by org.apache.activemq.blob.BlobUploader

public class BlobUploader
extends Object

A helper class to represent a required upload of a BLOB to some remote URL


Constructor Summary
BlobUploader(BlobTransferPolicy blobTransferPolicy, File file)
           
BlobUploader(BlobTransferPolicy blobTransferPolicy, InputStream in)
           
 
Method Summary
 BlobTransferPolicy getBlobTransferPolicy()
           
 BlobUploadStrategy getStrategy()
           
 URL upload(ActiveMQBlobMessage message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobUploader

public BlobUploader(BlobTransferPolicy blobTransferPolicy,
                    InputStream in)

BlobUploader

public BlobUploader(BlobTransferPolicy blobTransferPolicy,
                    File file)
Method Detail

upload

public URL upload(ActiveMQBlobMessage message)
           throws JMSException,
                  IOException
Throws:
JMSException
IOException

getBlobTransferPolicy

public BlobTransferPolicy getBlobTransferPolicy()

getStrategy

public BlobUploadStrategy getStrategy()


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