Package org.apache.activemq.blob
Class DefaultBlobUploadStrategy
java.lang.Object
org.apache.activemq.blob.DefaultStrategy
org.apache.activemq.blob.DefaultBlobUploadStrategy
- All Implemented Interfaces:
BlobUploadStrategy
A default implementation of
BlobUploadStrategy 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 -
Method Summary
Modifier and TypeMethodDescriptionuploadFile(ActiveMQBlobMessage message, File file) uploadStream(ActiveMQBlobMessage message, InputStream fis) Methods inherited from class org.apache.activemq.blob.DefaultStrategy
createMessageURL, isSuccessfulCode
-
Constructor Details
-
DefaultBlobUploadStrategy
-
-
Method Details
-
uploadFile
public URL uploadFile(ActiveMQBlobMessage message, File file) throws jakarta.jms.JMSException, IOException - Specified by:
uploadFilein interfaceBlobUploadStrategy- Throws:
jakarta.jms.JMSExceptionIOException
-
uploadStream
public URL uploadStream(ActiveMQBlobMessage message, InputStream fis) throws jakarta.jms.JMSException, IOException - Specified by:
uploadStreamin interfaceBlobUploadStrategy- Throws:
jakarta.jms.JMSExceptionIOException
-