public class DefaultBlobUploadStrategy extends DefaultStrategy implements BlobUploadStrategy
BlobUploadStrategy which uses the URL
class to upload files or streams to a remote URLtransferPolicy| Constructor and Description |
|---|
DefaultBlobUploadStrategy(BlobTransferPolicy transferPolicy) |
| Modifier and Type | Method and Description |
|---|---|
URL |
uploadFile(ActiveMQBlobMessage message,
File file) |
URL |
uploadStream(ActiveMQBlobMessage message,
InputStream fis) |
createMessageURL, isSuccessfulCodepublic DefaultBlobUploadStrategy(BlobTransferPolicy transferPolicy)
public URL uploadFile(ActiveMQBlobMessage message, File file) throws JMSException, IOException
uploadFile in interface BlobUploadStrategyJMSExceptionIOExceptionpublic URL uploadStream(ActiveMQBlobMessage message, InputStream fis) throws JMSException, IOException
uploadStream in interface BlobUploadStrategyJMSExceptionIOExceptionCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.