com.acciente.induction.init.config
Class Config.FileUpload

java.lang.Object
  extended by com.acciente.induction.init.config.Config.FileUpload
Enclosing class:
Config

public static class Config.FileUpload
extends Object

Modular configuration container


Constructor Summary
Config.FileUpload()
           
 
Method Summary
 int getMaxUploadSizeInBytes()
           
 int getStoreOnDiskThresholdInBytes()
           
 File getUploadedFileStorageDir()
          Returns the path to which uploaded files that are too large to be kept in memory should be written, if no directory is specified all files are kept in memory
 void setMaxUploadSizeInBytes(int iMaxUploadSizeInBytes)
          Sets the maximum upload file size in bytes will be accepted
 void setStoreOnDiskThresholdInBytes(int iStoreOnDiskThresholdInBytes)
          Set a file size in bytes above which the uploaded file will be stored on disk
 void setUploadedFileStorageDir(File oUploadedFileStorageDir)
           
 String toString()
           
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Config.FileUpload

public Config.FileUpload()
Method Detail

setUploadedFileStorageDir

public void setUploadedFileStorageDir(File oUploadedFileStorageDir)

getUploadedFileStorageDir

public File getUploadedFileStorageDir()
Returns the path to which uploaded files that are too large to be kept in memory should be written, if no directory is specified all files are kept in memory

Returns:
a File object representing a path to which the uploaded files should be saved

getMaxUploadSizeInBytes

public int getMaxUploadSizeInBytes()

setMaxUploadSizeInBytes

public void setMaxUploadSizeInBytes(int iMaxUploadSizeInBytes)
Sets the maximum upload file size in bytes will be accepted

Parameters:
iMaxUploadSizeInBytes - a file size in bytes

getStoreOnDiskThresholdInBytes

public int getStoreOnDiskThresholdInBytes()

setStoreOnDiskThresholdInBytes

public void setStoreOnDiskThresholdInBytes(int iStoreOnDiskThresholdInBytes)
Set a file size in bytes above which the uploaded file will be stored on disk

Parameters:
iStoreOnDiskThresholdInBytes - a file size in bytes

toString

public String toString()
Overrides:
toString in class Object

toXML

public String toXML()


Copyright © 2008-2013 Acciente, LLC. All Rights Reserved.