org.apache.activemq.blob
Class DefaultBlobUploadStrategy
java.lang.Object
org.apache.activemq.blob.DefaultStrategy
org.apache.activemq.blob.DefaultBlobUploadStrategy
- All Implemented Interfaces:
- BlobUploadStrategy
public class DefaultBlobUploadStrategy
- extends DefaultStrategy
- implements BlobUploadStrategy
A default implementation of BlobUploadStrategy which uses the URL
class to upload files or streams to a remote URL
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBlobUploadStrategy
public DefaultBlobUploadStrategy(BlobTransferPolicy transferPolicy)
uploadFile
public URL uploadFile(ActiveMQBlobMessage message,
File file)
throws javax.jms.JMSException,
IOException
- Specified by:
uploadFile in interface BlobUploadStrategy
- Throws:
javax.jms.JMSException
IOException
uploadStream
public URL uploadStream(ActiveMQBlobMessage message,
InputStream fis)
throws javax.jms.JMSException,
IOException
- Specified by:
uploadStream in interface BlobUploadStrategy
- Throws:
javax.jms.JMSException
IOException
Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.