|
||||||||||
| 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 File |
getFile(ActiveMQBlobMessage message)
Return the File for the ActiveMQBlobMessage. |
InputStream |
getInputStream(ActiveMQBlobMessage message)
Returns a FileInputStream for the give ActiveMQBlobMessage |
URL |
uploadFile(ActiveMQBlobMessage message,
File file)
|
URL |
uploadStream(ActiveMQBlobMessage message,
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 MalformedURLException,
URISyntaxException
MalformedURLException
URISyntaxException| Method Detail |
|---|
protected void createRootFolder()
throws MalformedURLException,
URISyntaxException
MalformedURLException
URISyntaxException
public URL uploadFile(ActiveMQBlobMessage message,
File file)
throws javax.jms.JMSException,
IOException
uploadFile in interface BlobUploadStrategyjavax.jms.JMSException
IOException
public URL uploadStream(ActiveMQBlobMessage message,
InputStream in)
throws javax.jms.JMSException,
IOException
uploadStream in interface BlobUploadStrategyjavax.jms.JMSException
IOException
public void deleteFile(ActiveMQBlobMessage message)
throws IOException,
javax.jms.JMSException
deleteFile in interface BlobDownloadStrategyIOException
javax.jms.JMSException
public InputStream getInputStream(ActiveMQBlobMessage message)
throws IOException,
javax.jms.JMSException
FileInputStream for the give ActiveMQBlobMessage
getInputStream in interface BlobDownloadStrategyIOException
javax.jms.JMSException
protected File getFile(ActiveMQBlobMessage message)
throws javax.jms.JMSException,
IOException
File for the ActiveMQBlobMessage.
message -
javax.jms.JMSException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||