|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.blob.DefaultStrategy
org.apache.activemq.blob.DefaultBlobUploadStrategy
public class DefaultBlobUploadStrategy
A default implementation of BlobUploadStrategy which uses the URL
class to upload files or streams to a remote URL
| Field Summary |
|---|
| Fields inherited from class org.apache.activemq.blob.DefaultStrategy |
|---|
transferPolicy |
| Constructor Summary | |
|---|---|
DefaultBlobUploadStrategy(BlobTransferPolicy transferPolicy)
|
|
| Method Summary | |
|---|---|
java.net.URL |
uploadFile(ActiveMQBlobMessage message,
java.io.File file)
|
java.net.URL |
uploadStream(ActiveMQBlobMessage message,
java.io.InputStream fis)
|
| Methods inherited from class org.apache.activemq.blob.DefaultStrategy |
|---|
createMessageURL, isSuccessfulCode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultBlobUploadStrategy(BlobTransferPolicy transferPolicy)
| Method Detail |
|---|
public java.net.URL uploadFile(ActiveMQBlobMessage message,
java.io.File file)
throws javax.jms.JMSException,
java.io.IOException
uploadFile in interface BlobUploadStrategyjavax.jms.JMSException
java.io.IOException
public java.net.URL uploadStream(ActiveMQBlobMessage message,
java.io.InputStream fis)
throws javax.jms.JMSException,
java.io.IOException
uploadStream in interface BlobUploadStrategyjavax.jms.JMSException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||