/** * Creates an initialized <CODE>BlobMessage</CODE> object. A * <CODE>BlobMessage</CODE> object is used to send a message containing * the <CODE>File</CODE> content. Before the message is sent the file * conent will be uploaded to the broker or some other remote repository * depending on the {@link #getBlobTransferPolicy()}. * * @param file the file to be uploaded to some remote repo (or the broker) * depending on the strategy * @return a BlobMessage * @throws JMSException if the JMS provider fails to create this message due * to some internal error. */ public BlobMessage createBlobMessage(File file) throws JMSException { ActiveMQBlobMessage message = new ActiveMQBlobMessage(); configureMessage(message); message.setBlobUploader(new BlobUploader(getBlobTransferPolicy(), file)); message.setBlobDownloader(new BlobDownloader((getBlobTransferPolicy()))); message.setDeletedByBroker(true); message.setName(file.getName()); return message; }
private void copy(ActiveMQBlobMessage copy) { super.copy(copy); copy.setRemoteBlobUrl(getRemoteBlobUrl()); copy.setMimeType(getMimeType()); copy.setDeletedByBroker(isDeletedByBroker()); copy.setBlobUploader(getBlobUploader()); copy.setName(getName()); }
/** * Creates an initialized <CODE>BlobMessage</CODE> object. A * <CODE>BlobMessage</CODE> object is used to send a message containing * the <CODE>File</CODE> content. Before the message is sent the file * conent will be uploaded to the broker or some other remote repository * depending on the {@link #getBlobTransferPolicy()}. * * @param file the file to be uploaded to some remote repo (or the broker) * depending on the strategy * @return a BlobMessage * @throws JMSException if the JMS provider fails to create this message due * to some internal error. */ public BlobMessage createBlobMessage(File file) throws JMSException { ActiveMQBlobMessage message = new ActiveMQBlobMessage(); configureMessage(message); message.setBlobUploader(new BlobUploader(getBlobTransferPolicy(), file)); message.setBlobDownloader(new BlobDownloader((getBlobTransferPolicy()))); message.setDeletedByBroker(true); message.setName(file.getName()); return message; }
/** * Creates an initialized <CODE>BlobMessage</CODE> object. A * <CODE>BlobMessage</CODE> object is used to send a message containing * the <CODE>File</CODE> content. Before the message is sent the file * conent will be uploaded to the broker or some other remote repository * depending on the {@link #getBlobTransferPolicy()}. * * @param file the file to be uploaded to some remote repo (or the broker) * depending on the strategy * @return a BlobMessage * @throws JMSException if the JMS provider fails to create this message due * to some internal error. */ public BlobMessage createBlobMessage(File file) throws JMSException { ActiveMQBlobMessage message = new ActiveMQBlobMessage(); configureMessage(message); message.setBlobUploader(new BlobUploader(getBlobTransferPolicy(), file)); message.setBlobDownloader(new BlobDownloader((getBlobTransferPolicy()))); message.setDeletedByBroker(true); message.setName(file.getName()); return message; }
/** * Creates an initialized <CODE>BlobMessage</CODE> object. A * <CODE>BlobMessage</CODE> object is used to send a message containing * the <CODE>File</CODE> content. Before the message is sent the file * conent will be uploaded to the broker or some other remote repository * depending on the {@link #getBlobTransferPolicy()}. * * @param file the file to be uploaded to some remote repo (or the broker) * depending on the strategy * @return a BlobMessage * @throws JMSException if the JMS provider fails to create this message due * to some internal error. */ public BlobMessage createBlobMessage(File file) throws JMSException { ActiveMQBlobMessage message = new ActiveMQBlobMessage(); configureMessage(message); message.setBlobUploader(new BlobUploader(getBlobTransferPolicy(), file)); message.setBlobDownloader(new BlobDownloader((getBlobTransferPolicy()))); message.setDeletedByBroker(true); message.setName(file.getName()); return message; }
/** * Creates an initialized <CODE>BlobMessage</CODE> object. A * <CODE>BlobMessage</CODE> object is used to send a message containing * the <CODE>File</CODE> content. Before the message is sent the file * conent will be uploaded to the broker or some other remote repository * depending on the {@link #getBlobTransferPolicy()}. * * @param file the file to be uploaded to some remote repo (or the broker) * depending on the strategy * @return a BlobMessage * @throws JMSException if the JMS provider fails to create this message due * to some internal error. */ public BlobMessage createBlobMessage(File file) throws JMSException { ActiveMQBlobMessage message = new ActiveMQBlobMessage(); configureMessage(message); message.setBlobUploader(new BlobUploader(getBlobTransferPolicy(), file)); message.setBlobDownloader(new BlobDownloader((getBlobTransferPolicy()))); message.setDeletedByBroker(true); message.setName(file.getName()); return message; }
private void copy(ActiveMQBlobMessage copy) { super.copy(copy); copy.setRemoteBlobUrl(getRemoteBlobUrl()); copy.setMimeType(getMimeType()); copy.setDeletedByBroker(isDeletedByBroker()); copy.setBlobUploader(getBlobUploader()); copy.setName(getName()); }
private void copy(ActiveMQBlobMessage copy) { super.copy(copy); copy.setRemoteBlobUrl(getRemoteBlobUrl()); copy.setMimeType(getMimeType()); copy.setDeletedByBroker(isDeletedByBroker()); copy.setBlobUploader(getBlobUploader()); copy.setName(getName()); }
private void copy(ActiveMQBlobMessage copy) { super.copy(copy); copy.setRemoteBlobUrl(getRemoteBlobUrl()); copy.setMimeType(getMimeType()); copy.setDeletedByBroker(isDeletedByBroker()); copy.setBlobUploader(getBlobUploader()); copy.setName(getName()); }
private void copy(ActiveMQBlobMessage copy) { super.copy(copy); copy.setRemoteBlobUrl(getRemoteBlobUrl()); copy.setMimeType(getMimeType()); copy.setDeletedByBroker(isDeletedByBroker()); copy.setBlobUploader(getBlobUploader()); copy.setName(getName()); }