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 javax.jms.JMSException, IOException
uploadFile in interface BlobUploadStrategyjavax.jms.JMSExceptionIOExceptionpublic URL uploadStream(ActiveMQBlobMessage message, InputStream fis) throws javax.jms.JMSException, IOException
uploadStream in interface BlobUploadStrategyjavax.jms.JMSExceptionIOExceptionCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.