org.apache.activemq
Interface BlobMessage

All Superinterfaces:
javax.jms.Message
All Known Implementing Classes:
ActiveMQBlobMessage

public interface BlobMessage
extends Message

Represents a message which has a typically out of band Binary Large Object (BLOB)


Field Summary
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Method Summary
 java.io.InputStream getInputStream()
          Return the input stream to process the BLOB
 java.lang.String getMimeType()
          The MIME type of the BLOB which can be used to apply different content types to messages.
 java.lang.String getName()
           
 java.net.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(java.lang.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(java.lang.String name)
          The name of the attachment which can be useful information if transmitting files over ActiveMQ
 
Methods inherited from interface org.apache.activemq.Message
getJMSXMimeType
 
Methods inherited from interface javax.jms.Message
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
 

Method Detail

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException,
                                          javax.jms.JMSException
Return the input stream to process the BLOB

Throws:
java.io.IOException
javax.jms.JMSException

getURL

java.net.URL getURL()
                    throws java.net.MalformedURLException,
                           javax.jms.JMSException
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:
java.net.MalformedURLException
javax.jms.JMSException

getMimeType

java.lang.String getMimeType()
The MIME type of the BLOB which can be used to apply different content types to messages.


setMimeType

void setMimeType(java.lang.String mimeType)
Sets the MIME type of the BLOB so that a consumer can process things nicely with a Java Activation Framework DataHandler


getName

java.lang.String getName()

setName

void setName(java.lang.String name)
The name of the attachment which can be useful information if transmitting files over ActiveMQ



Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.