Package org.apache.activemq
Interface BlobMessage
- All Superinterfaces:
jakarta.jms.Message
,Message
- All Known Implementing Classes:
ActiveMQBlobMessage
Represents a message which has a typically out of band Binary Large Object
(BLOB)
-
Field Summary
Fields inherited from interface jakarta.jms.Message
DEFAULT_DELIVERY_DELAY, DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
-
Method Summary
Modifier and TypeMethodDescriptionReturn the input stream to process the BLOBThe MIME type of the BLOB which can be used to apply different content types to messages.getName()
getURL()
Returns the URL for the blob if its available as an external URL (such as file, http, ftp etc) or null if there is no URL availablevoid
setMimeType
(String mimeType) Sets the MIME type of the BLOB so that a consumer can process things nicely with a Java Activation Framework DataHandlervoid
The name of the attachment which can be useful information if transmitting files over ActiveMQMethods inherited from interface jakarta.jms.Message
acknowledge, clearBody, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isBodyAssignableTo, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
Methods inherited from interface org.apache.activemq.Message
getJMSXMimeType
-
Method Details
-
getInputStream
Return the input stream to process the BLOB- Throws:
IOException
jakarta.jms.JMSException
-
getURL
Returns the URL for the blob if its available as an external URL (such as file, http, ftp etc) or null if there is no URL available- Throws:
MalformedURLException
jakarta.jms.JMSException
-
getMimeType
String getMimeType()The MIME type of the BLOB which can be used to apply different content types to messages. -
setMimeType
Sets the MIME type of the BLOB so that a consumer can process things nicely with a Java Activation Framework DataHandler -
getName
String getName() -
setName
The name of the attachment which can be useful information if transmitting files over ActiveMQ
-