Package 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 ofBlobUploadStrategy
which uses the URL class to upload files or streams to a remote URL
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.blob.DefaultStrategy
transferPolicy
-
-
Constructor Summary
Constructors Constructor Description DefaultBlobUploadStrategy(BlobTransferPolicy transferPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
uploadFile(ActiveMQBlobMessage message, File file)
URL
uploadStream(ActiveMQBlobMessage message, InputStream fis)
-
Methods inherited from class org.apache.activemq.blob.DefaultStrategy
createMessageURL, isSuccessfulCode
-
-
-
-
Constructor Detail
-
DefaultBlobUploadStrategy
public DefaultBlobUploadStrategy(BlobTransferPolicy transferPolicy)
-
-
Method Detail
-
uploadFile
public URL uploadFile(ActiveMQBlobMessage message, File file) throws JMSException, IOException
- Specified by:
uploadFile
in interfaceBlobUploadStrategy
- Throws:
JMSException
IOException
-
uploadStream
public URL uploadStream(ActiveMQBlobMessage message, InputStream fis) throws JMSException, IOException
- Specified by:
uploadStream
in interfaceBlobUploadStrategy
- Throws:
JMSException
IOException
-
-