public class ActiveMQBlobMessage extends ActiveMQMessage implements BlobMessage
BlobMessage for out of band BLOB transferMessage.MessageDestination| Modifier and Type | Field and Description |
|---|---|
static 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() |
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) |
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, canProcessAsExpired, 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, isConsumerControl, 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 String BINARY_MIME_TYPE
public ActiveMQBlobMessage()
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)
BlobMessagesetMimeType 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 bodygetJMSXMimeType in class ActiveMQMessagepublic InputStream getInputStream() throws IOException, JMSException
BlobMessagegetInputStream in interface BlobMessageIOExceptionJMSExceptionpublic URL getURL() throws JMSException
BlobMessagegetURL in interface BlobMessageJMSExceptionpublic BlobUploader getBlobUploader()
public void setBlobUploader(BlobUploader blobUploader)
public BlobDownloader getBlobDownloader()
public void setBlobDownloader(BlobDownloader blobDownloader)
public void onSend() throws JMSException
ActiveMQMessageonSend in class ActiveMQMessageJMSExceptionpublic void deleteFile() throws IOException, JMSException
IOExceptionJMSExceptionCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.