|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.command.BaseCommand
org.apache.activemq.command.Message
org.apache.activemq.command.ActiveMQMessage
org.apache.activemq.command.ActiveMQBlobMessage
public class ActiveMQBlobMessage
An implementation of BlobMessage for out of band BLOB transfer
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.activemq.command.Message |
|---|
Message.MessageDestination |
| Field Summary | |
|---|---|
static String |
BINARY_MIME_TYPE
|
static byte |
DATA_STRUCTURE_TYPE
|
| Fields inherited from class org.apache.activemq.command.ActiveMQMessage |
|---|
acknowledgeCallback, BROKER_PATH_PROPERTY, DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY |
| Fields inherited from class org.apache.activemq.command.Message |
|---|
arrival, brokerInTime, brokerOutTime, compressed, content, correlationId, dataStructure, DEFAULT_MINIMUM_MESSAGE_SIZE, destination, droppable, expiration, groupID, groupSequence, jmsXGroupFirstForConsumer, marshalledProperties, messageId, ORIGINAL_EXPIRATION, originalDestination, originalTransactionId, persistent, priority, producerId, properties, readOnlyBody, readOnlyProperties, recievedByDFBridge, redeliveryCounter, replyTo, size, targetConsumerId, timestamp, transactionId, type, userID |
| Fields inherited from class org.apache.activemq.command.BaseCommand |
|---|
commandId, responseRequired |
| Fields inherited from interface javax.jms.Message |
|---|
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE |
| Constructor Summary | |
|---|---|
ActiveMQBlobMessage()
|
|
| Method Summary | |
|---|---|
Message |
copy()
|
void |
deleteFile()
|
BlobDownloader |
getBlobDownloader()
|
BlobUploader |
getBlobUploader()
|
byte |
getDataStructureType()
|
InputStream |
getInputStream()
Return the input stream to process the BLOB |
String |
getJMSXMimeType()
Returns the MIME type of this mesage. |
String |
getMimeType()
The MIME type of the BLOB which can be used to apply different content types to messages. |
String |
getName()
|
String |
getRemoteBlobUrl()
|
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 |
boolean |
isDeletedByBroker()
|
void |
onSend()
Send operation event listener. |
void |
setBlobDownloader(BlobDownloader blobDownloader)
|
void |
setBlobUploader(BlobUploader blobUploader)
|
void |
setDeletedByBroker(boolean deletedByBroker)
|
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 |
void |
setRemoteBlobUrl(String remoteBlobUrl)
|
void |
setURL(URL url)
|
| Methods inherited from class org.apache.activemq.command.BaseCommand |
|---|
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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 |
| Field Detail |
|---|
public static final byte DATA_STRUCTURE_TYPE
public static final String BINARY_MIME_TYPE
| Constructor Detail |
|---|
public ActiveMQBlobMessage()
| Method Detail |
|---|
public Message copy()
copy in class ActiveMQMessagepublic byte getDataStructureType()
getDataStructureType in interface DataStructuregetDataStructureType in class ActiveMQMessagepublic String getRemoteBlobUrl()
public void setRemoteBlobUrl(String remoteBlobUrl)
public String getMimeType()
getMimeType in interface BlobMessagepublic void setMimeType(String mimeType)
BlobMessage
setMimeType in interface BlobMessagepublic String getName()
getName in interface BlobMessagepublic void setName(String name)
setName in interface BlobMessagepublic boolean isDeletedByBroker()
public void setDeletedByBroker(boolean deletedByBroker)
public String getJMSXMimeType()
MessageBlobMessage
it allows you to create a selector on the MIME type of the BLOB body
getJMSXMimeType in class ActiveMQMessage
public InputStream getInputStream()
throws IOException,
javax.jms.JMSException
BlobMessage
getInputStream in interface BlobMessageIOException
javax.jms.JMSException
public URL getURL()
throws javax.jms.JMSException
BlobMessage
getURL in interface BlobMessagejavax.jms.JMSExceptionpublic void setURL(URL url)
public BlobUploader getBlobUploader()
public void setBlobUploader(BlobUploader blobUploader)
public BlobDownloader getBlobDownloader()
public void setBlobDownloader(BlobDownloader blobDownloader)
public void onSend()
throws javax.jms.JMSException
ActiveMQMessage
onSend in class ActiveMQMessagejavax.jms.JMSException
public void deleteFile()
throws IOException,
javax.jms.JMSException
IOException
javax.jms.JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||