public class ActiveMQBlobMessage extends ActiveMQMessage implements BlobMessage
BlobMessage for out of band BLOB transferMessage.MessageDestination| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BINARY_MIME_TYPE |
static byte |
DATA_STRUCTURE_TYPE |
acknowledgeCallback, BROKER_PATH_PROPERTY, DLQ_DELIVERY_FAILURE_CAUSE_PROPERTYarrival, 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, userIDcommandId, responseRequiredDEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVEAMQ_SCHEDULED_CRON, AMQ_SCHEDULED_DELAY, AMQ_SCHEDULED_ID, AMQ_SCHEDULED_PERIOD, AMQ_SCHEDULED_REPEAT, AMQ_SCHEDULER_ACTION, AMQ_SCHEDULER_ACTION_BROWSE, AMQ_SCHEDULER_ACTION_END_TIME, AMQ_SCHEDULER_ACTION_REMOVE, AMQ_SCHEDULER_ACTION_REMOVEALL, AMQ_SCHEDULER_ACTION_START_TIME, AMQ_SCHEDULER_MANAGEMENT_DESTINATION| Constructor and Description |
|---|
ActiveMQBlobMessage() |
| Modifier and Type | Method and Description |
|---|---|
Message |
copy() |
void |
deleteFile() |
BlobDownloader |
getBlobDownloader() |
BlobUploader |
getBlobUploader() |
byte |
getDataStructureType() |
java.io.InputStream |
getInputStream()
Return the input stream to process the BLOB
|
java.lang.String |
getJMSXMimeType()
Returns the MIME type of this mesage.
|
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.lang.String |
getRemoteBlobUrl() |
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
|
boolean |
isDeletedByBroker() |
void |
onSend()
Send operation event listener.
|
void |
setBlobDownloader(BlobDownloader blobDownloader) |
void |
setBlobUploader(BlobUploader blobUploader) |
void |
setDeletedByBroker(boolean deletedByBroker) |
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
|
void |
setRemoteBlobUrl(java.lang.String remoteBlobUrl) |
void |
setURL(java.net.URL url) |
acknowledge, checkReadOnlyBody, checkValidObject, checkValidScheduled, clearBody, clearProperties, convertScheduled, copy, decodeString, encodeString, equals, getAcknowledgeCallback, getAllPropertyNames, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, propertyExists, setAcknowledgeCallback, setBooleanProperty, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setObjectProperty, setProperties, setShortProperty, setStringProperty, storeContent, storeContentAndClear, visitafterMarshall, afterUnmarshall, beforeMarshall, beforeUnmarshall, clearMarshalledState, compress, copy, decrementReferenceCount, doCompress, getArrival, getBrokerInTime, getBrokerOutTime, getBrokerPath, getCluster, getConnection, getContent, getCorrelationId, getDataStructure, getDestination, getExpiration, getGroupID, getGroupSequence, getMarshalledProperties, getMemoryUsage, getMessage, getMessageHardRef, getMessageId, getMinimumMessageSize, getOriginalDestination, getOriginalTransactionId, getPriority, getProducerId, getProperties, getProperty, getRedeliveryCounter, getReferenceCount, getRegionDestination, getReplyTo, getSize, getTargetConsumerId, getTimestamp, getTransactionId, getType, getUserID, incrementRedeliveryCounter, incrementReferenceCount, isAdvisory, isCompressed, isDroppable, isDropped, isExpired, isInTransaction, isJMSXGroupFirstForConsumer, isMarshallAware, isMessage, isPersistent, isReadOnlyBody, isReadOnlyProperties, isRecievedByDFBridge, isRedelivered, lazyCreateProperties, onMessageRolledBack, removeProperty, setArrival, setBrokerInTime, setBrokerOutTime, setBrokerPath, setCluster, setCompressed, setConnection, setContent, setCorrelationId, setDataStructure, setDestination, setDroppable, setExpiration, setGroupID, setGroupSequence, setJMSXGroupFirstForConsumer, setMarshalledProperties, setMemoryUsage, setMessageId, setOriginalDestination, setOriginalTransactionId, setPersistent, setPriority, setProducerId, setProperty, setReadOnlyBody, setReadOnlyProperties, setRecievedByDFBridge, setRedelivered, setRedeliveryCounter, setRegionDestination, setReplyTo, setTargetConsumerId, setTimestamp, setTransactionId, setType, setUserID, toString, toStringcopy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setToclone, finalize, getClass, notify, notifyAll, wait, wait, waitacknowledge, 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, setStringPropertypublic static final byte DATA_STRUCTURE_TYPE
public static final java.lang.String BINARY_MIME_TYPE
public Message copy()
copy in class ActiveMQMessagepublic byte getDataStructureType()
getDataStructureType in interface DataStructuregetDataStructureType in class ActiveMQMessagepublic java.lang.String getRemoteBlobUrl()
public void setRemoteBlobUrl(java.lang.String remoteBlobUrl)
public java.lang.String getMimeType()
getMimeType in interface BlobMessagepublic void setMimeType(java.lang.String mimeType)
BlobMessagesetMimeType in interface BlobMessagepublic java.lang.String getName()
getName in interface BlobMessagepublic void setName(java.lang.String name)
setName in interface BlobMessagepublic boolean isDeletedByBroker()
public void setDeletedByBroker(boolean deletedByBroker)
public java.lang.String getJMSXMimeType()
MessageBlobMessage
it allows you to create a selector on the MIME type of the BLOB bodygetJMSXMimeType in class ActiveMQMessagepublic java.io.InputStream getInputStream()
throws java.io.IOException,
javax.jms.JMSException
BlobMessagegetInputStream in interface BlobMessagejava.io.IOExceptionjavax.jms.JMSExceptionpublic java.net.URL getURL()
throws javax.jms.JMSException
BlobMessagegetURL in interface BlobMessagejavax.jms.JMSExceptionpublic void setURL(java.net.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
ActiveMQMessageonSend in class ActiveMQMessagejavax.jms.JMSExceptionpublic void deleteFile()
throws java.io.IOException,
javax.jms.JMSException
java.io.IOExceptionjavax.jms.JMSExceptionCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.