public class DefaultBlobUploadStrategy extends DefaultStrategy implements BlobUploadStrategy
BlobUploadStrategy
which uses the URL
class to upload files or streams to a remote URLtransferPolicy
Constructor and Description |
---|
DefaultBlobUploadStrategy(BlobTransferPolicy transferPolicy) |
Modifier and Type | Method and Description |
---|---|
URL |
uploadFile(ActiveMQBlobMessage message,
File file) |
URL |
uploadStream(ActiveMQBlobMessage message,
InputStream fis) |
createMessageURL, isSuccessfulCode
public DefaultBlobUploadStrategy(BlobTransferPolicy transferPolicy)
public URL uploadFile(ActiveMQBlobMessage message, File file) throws JMSException, IOException
uploadFile
in interface BlobUploadStrategy
JMSException
IOException
public URL uploadStream(ActiveMQBlobMessage message, InputStream fis) throws JMSException, IOException
uploadStream
in interface BlobUploadStrategy
JMSException
IOException
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.