nextapp.echoservlet.filetransferui
Class Installer

java.lang.Object
  extended by nextapp.echoservlet.filetransferui.Installer

public class Installer
extends java.lang.Object

Registers the file transfer library with the EchoServer.


Constructor Summary
Installer()
           
 
Method Summary
protected static java.lang.String nextId()
           
static void register()
          Registers the file transfer library with the EchoServer.
static void register(java.lang.Integer maxUploadSize, java.io.File diskCacheLocation, java.lang.Integer memoryCacheThresholdSize)
          An alternative to register() that allows specification of operating parameters such as the maximum upload size and enabling disk caching.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Installer

public Installer()
Method Detail

nextId

protected static final java.lang.String nextId()

register

public static void register()
Registers the file transfer library with the EchoServer. This method must be called before any components in the file transfer library may be used.


register

public static void register(java.lang.Integer maxUploadSize,
                            java.io.File diskCacheLocation,
                            java.lang.Integer memoryCacheThresholdSize)
                     throws java.io.IOException
An alternative to register() that allows specification of operating parameters such as the maximum upload size and enabling disk caching.

Parameters:
maxUploadSize - Size, in bytes, of maximum allowable upload. Null or negetive values allow any sized upload. A value of zero will disable file uploading.
diskCacheLocation - Location to store uploaded files instead of holding them in memory. If this value is null, uploads will be stored in memory during the request processing.
memoryCacheThresholdSize - Size, in bytes, that a file upload must exceed for it to be stored to disk. A null, negative or zero value will force the file to always be cached to disk. This parameter is ignored if diskCacheLocation is null.
Throws:
java.io.IOException - if the discovered MultipartUploadSPI provider throws an IOException.