Package org.apache.activemq.blob
Class BlobUploader
- java.lang.Object
-
- 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
Constructors Constructor Description BlobUploader(BlobTransferPolicy blobTransferPolicy, File file)
BlobUploader(BlobTransferPolicy blobTransferPolicy, InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobTransferPolicy
getBlobTransferPolicy()
BlobUploadStrategy
getStrategy()
URL
upload(ActiveMQBlobMessage message)
-
-
-
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()
-
-