org.apache.activemq.blob
Class DefaultBlobUploadStrategy
java.lang.Object
org.apache.activemq.blob.DefaultBlobUploadStrategy
- All Implemented Interfaces:
- BlobUploadStrategy
public class DefaultBlobUploadStrategy
- extends Object
- 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 JMSException,
IOException
- Specified by:
uploadFile
in interface BlobUploadStrategy
- Throws:
JMSException
IOException
uploadStream
public URL uploadStream(ActiveMQBlobMessage message,
InputStream fis)
throws JMSException,
IOException
- Specified by:
uploadStream
in interface BlobUploadStrategy
- Throws:
JMSException
IOException
deleteFile
public void deleteFile(ActiveMQBlobMessage message)
throws IOException,
JMSException
- Throws:
IOException
JMSException
createUploadURL
protected URL createUploadURL(ActiveMQBlobMessage message)
throws JMSException,
MalformedURLException
- Throws:
JMSException
MalformedURLException
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.