org.apache.activemq.blob
Class FTPBlobUploadStrategy

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

public class FTPBlobUploadStrategy
extends FTPStrategy
implements BlobUploadStrategy

A FTP implementation of BlobUploadStrategy.


Field Summary
 
Fields inherited from class org.apache.activemq.blob.FTPStrategy
ftpPass, ftpUser, transferPolicy, url
 
Constructor Summary
FTPBlobUploadStrategy(BlobTransferPolicy transferPolicy)
           
 
Method Summary
 URL uploadFile(ActiveMQBlobMessage message, File file)
           
 URL uploadStream(ActiveMQBlobMessage message, InputStream in)
           
 
Methods inherited from class org.apache.activemq.blob.FTPStrategy
createFTP, setUserInformation
 
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-2013 The Apache Software Foundation. All Rights Reserved.