|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.blob.FileSystemBlobStrategy
public class FileSystemBlobStrategy
BlobUploadStrategy
and BlobDownloadStrategy
implementation which use the local filesystem for storing
the payload
Constructor Summary | |
---|---|
FileSystemBlobStrategy(BlobTransferPolicy policy)
|
Method Summary | |
---|---|
protected void |
createRootFolder()
Create the root folder if not exist |
void |
deleteFile(ActiveMQBlobMessage message)
|
protected java.io.File |
getFile(ActiveMQBlobMessage message)
Return the File for the ActiveMQBlobMessage . |
java.io.InputStream |
getInputStream(ActiveMQBlobMessage message)
Returns a FileInputStream for the give ActiveMQBlobMessage |
java.net.URL |
uploadFile(ActiveMQBlobMessage message,
java.io.File file)
|
java.net.URL |
uploadStream(ActiveMQBlobMessage message,
java.io.InputStream in)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSystemBlobStrategy(BlobTransferPolicy policy) throws java.net.MalformedURLException, java.net.URISyntaxException
java.net.MalformedURLException
java.net.URISyntaxException
Method Detail |
---|
protected void createRootFolder() throws java.net.MalformedURLException, java.net.URISyntaxException
java.net.MalformedURLException
java.net.URISyntaxException
public java.net.URL uploadFile(ActiveMQBlobMessage message, java.io.File file) throws javax.jms.JMSException, java.io.IOException
uploadFile
in interface BlobUploadStrategy
javax.jms.JMSException
java.io.IOException
public java.net.URL uploadStream(ActiveMQBlobMessage message, java.io.InputStream in) throws javax.jms.JMSException, java.io.IOException
uploadStream
in interface BlobUploadStrategy
javax.jms.JMSException
java.io.IOException
public void deleteFile(ActiveMQBlobMessage message) throws java.io.IOException, javax.jms.JMSException
deleteFile
in interface BlobDownloadStrategy
java.io.IOException
javax.jms.JMSException
public java.io.InputStream getInputStream(ActiveMQBlobMessage message) throws java.io.IOException, javax.jms.JMSException
FileInputStream
for the give ActiveMQBlobMessage
getInputStream
in interface BlobDownloadStrategy
java.io.IOException
javax.jms.JMSException
protected java.io.File getFile(ActiveMQBlobMessage message) throws javax.jms.JMSException, java.io.IOException
File
for the ActiveMQBlobMessage
.
message
-
javax.jms.JMSException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |