org.apache.activemq.blob
Class BlobTransferPolicy

java.lang.Object
  extended by org.apache.activemq.blob.BlobTransferPolicy

public class BlobTransferPolicy
extends Object

The policy for configuring how BLOBs (Binary Large OBjects) are transferred out of band between producers, brokers and consumers.


Constructor Summary
BlobTransferPolicy()
           
 
Method Summary
 BlobTransferPolicy copy()
          Returns a copy of this policy object
protected  BlobDownloadStrategy createDownloadStrategy()
          Returns the download strategy depending on the information from the uploadURL.
protected  BlobUploadStrategy createUploadStrategy()
          Returns the upload strategy depending on the information from the uploadURL.
 String getBrokerUploadUrl()
           
 int getBufferSize()
           
 String getDefaultUploadUrl()
           
 BlobDownloadStrategy getDownloadStrategy()
           
 BlobUploadStrategy getUploadStrategy()
           
 String getUploadUrl()
           
 void setBrokerUploadUrl(String brokerUploadUrl)
          Called by the JMS client when a broker advertises its upload URL
 void setBufferSize(int bufferSize)
          Sets the default buffer size used when uploading or downloading files
 void setDefaultUploadUrl(String defaultUploadUrl)
          Sets the default upload URL to use if the broker does not have a configured upload URL
 void setUploadStrategy(BlobUploadStrategy uploadStrategy)
          Sets the upload strategy to use for uploading BLOBs to some URL
 void setUploadUrl(String uploadUrl)
          Sets the upload URL to use explicitly on the client which will overload the default or the broker's URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobTransferPolicy

public BlobTransferPolicy()
Method Detail

copy

public BlobTransferPolicy copy()
Returns a copy of this policy object


getUploadUrl

public String getUploadUrl()

setUploadUrl

public void setUploadUrl(String uploadUrl)
Sets the upload URL to use explicitly on the client which will overload the default or the broker's URL. This allows the client to decide where to upload files to irrespective of the brokers configuration.


getBrokerUploadUrl

public String getBrokerUploadUrl()

setBrokerUploadUrl

public void setBrokerUploadUrl(String brokerUploadUrl)
Called by the JMS client when a broker advertises its upload URL


getDefaultUploadUrl

public String getDefaultUploadUrl()

setDefaultUploadUrl

public void setDefaultUploadUrl(String defaultUploadUrl)
Sets the default upload URL to use if the broker does not have a configured upload URL


getUploadStrategy

public BlobUploadStrategy getUploadStrategy()

getDownloadStrategy

public BlobDownloadStrategy getDownloadStrategy()

setUploadStrategy

public void setUploadStrategy(BlobUploadStrategy uploadStrategy)
Sets the upload strategy to use for uploading BLOBs to some URL


getBufferSize

public int getBufferSize()

setBufferSize

public void setBufferSize(int bufferSize)
Sets the default buffer size used when uploading or downloading files


createUploadStrategy

protected BlobUploadStrategy createUploadStrategy()
Returns the upload strategy depending on the information from the uploadURL. Currently supportet HTTP and FTP

Returns:

createDownloadStrategy

protected BlobDownloadStrategy createDownloadStrategy()
Returns the download strategy depending on the information from the uploadURL. Currently supportet HTTP and FTP

Returns:


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.