org.apache.activemq.blob
Class FTPBlobUploadStrategy

java.lang.Object
  extended by org.apache.activemq.blob.FTPBlobUploadStrategy
All Implemented Interfaces:
BlobUploadStrategy

public class FTPBlobUploadStrategy
extends Object
implements BlobUploadStrategy

A FTP implementation of BlobUploadStrategy.


Constructor Summary
FTPBlobUploadStrategy(BlobTransferPolicy transferPolicy)
           
 
Method Summary
 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

FTPBlobUploadStrategy

public FTPBlobUploadStrategy(BlobTransferPolicy transferPolicy)
                      throws MalformedURLException
Throws:
MalformedURLException
Method Detail

uploadFile

public URL uploadFile(ActiveMQBlobMessage message,
                      File file)
               throws JMSException,
                      IOException
Specified by:
uploadFile in interface BlobUploadStrategy
Throws:
JMSException
IOException

uploadStream

public URL uploadStream(ActiveMQBlobMessage message,
                        InputStream in)
                 throws JMSException,
                        IOException
Specified by:
uploadStream in interface BlobUploadStrategy
Throws:
JMSException
IOException


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.