public interface BlobMessage extends Message
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Return the input stream to process the BLOB
|
String |
getMimeType()
The MIME type of the BLOB which can be used to apply different content types to messages.
|
String |
getName() |
URL |
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
|
void |
setMimeType(String mimeType)
Sets the MIME type of the BLOB so that a consumer can process things nicely with a Java Activation Framework
DataHandler
|
void |
setName(String name)
The name of the attachment which can be useful information if transmitting files over ActiveMQ
|
getJMSXMimeType
acknowledge, clearBody, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
InputStream getInputStream() throws IOException, javax.jms.JMSException
IOException
javax.jms.JMSException
URL getURL() throws MalformedURLException, javax.jms.JMSException
MalformedURLException
javax.jms.JMSException
String getMimeType()
void setMimeType(String mimeType)
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.