org.pentaho.platform.web.servlet
Class UploadFileUtils

java.lang.Object
  extended by org.pentaho.platform.web.servlet.UploadFileUtils

public class UploadFileUtils
extends Object


Field Summary
static String DEFAULT_RELATIVE_UPLOAD_FILE_PATH
           
 
Constructor Summary
UploadFileUtils(IPentahoSession sessionValue)
           
 
Method Summary
 boolean checkLimits(long itemSize)
           
 boolean checkLimits(long itemSize, boolean compressed)
           
 String getFileName()
          Getters and Setters
 String getPath()
           
 File getPathDir()
           
 String getRelativePath()
           
 org.apache.commons.fileupload.FileItem getUploadedFileItem()
           
 Writer getWriter()
           
 boolean isShouldUnzip()
           
 boolean isTemporary()
           
 boolean process()
           
 void setFileName(String value)
           
 void setShouldUnzip(boolean value)
           
 void setTemporary(boolean value)
           
 void setUploadedFileItem(org.apache.commons.fileupload.FileItem value)
           
 void setWriter(Writer value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RELATIVE_UPLOAD_FILE_PATH

public static final String DEFAULT_RELATIVE_UPLOAD_FILE_PATH
Constructor Detail

UploadFileUtils

public UploadFileUtils(IPentahoSession sessionValue)
Method Detail

process

public boolean process()
                throws Exception
Throws:
Exception

checkLimits

public boolean checkLimits(long itemSize)
                    throws IOException
Throws:
IOException

checkLimits

public boolean checkLimits(long itemSize,
                           boolean compressed)
                    throws IOException
Throws:
IOException

getFileName

public String getFileName()
Getters and Setters


setFileName

public void setFileName(String value)

isShouldUnzip

public boolean isShouldUnzip()

setShouldUnzip

public void setShouldUnzip(boolean value)

isTemporary

public boolean isTemporary()

setTemporary

public void setTemporary(boolean value)

setWriter

public void setWriter(Writer value)

getWriter

public Writer getWriter()

setUploadedFileItem

public void setUploadedFileItem(org.apache.commons.fileupload.FileItem value)

getUploadedFileItem

public org.apache.commons.fileupload.FileItem getUploadedFileItem()

getPath

public String getPath()

getPathDir

public File getPathDir()

getRelativePath

public String getRelativePath()