Return to www.inductionframework.org

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 java.lang.Object

Modular configuration container


Constructor Summary
Config.FileUpload()
           
 
Method Summary
 int getMaxUploadSizeInBytes()
           
 int getStoreOnDiskThresholdInBytes()
           
 java.io.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(java.io.File oUploadedFileStorageDir)
           
 java.lang.String toString()
           
 java.lang.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(java.io.File oUploadedFileStorageDir)

getUploadedFileStorageDir

public java.io.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

toXML

public java.lang.String toXML()

Return to www.inductionframework.org

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