org.pentaho.platform.web.servlet
Class UploadFileUtils
java.lang.Object
org.pentaho.platform.web.servlet.UploadFileUtils
public class UploadFileUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_RELATIVE_UPLOAD_FILE_PATH
public static final java.lang.String DEFAULT_RELATIVE_UPLOAD_FILE_PATH
UploadFileUtils
public UploadFileUtils(IPentahoSession sessionValue)
process
public boolean process()
throws java.lang.Exception
- Throws:
java.lang.Exception
checkLimits
public boolean checkLimits(long itemSize)
throws java.io.IOException
- Throws:
java.io.IOException
checkLimits
public boolean checkLimits(long itemSize,
boolean compressed)
throws java.io.IOException
- Throws:
java.io.IOException
getFileName
public java.lang.String getFileName()
- Getters and Setters
setFileName
public void setFileName(java.lang.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(java.io.Writer value)
getWriter
public java.io.Writer getWriter()
setUploadedFileItem
public void setUploadedFileItem(org.apache.commons.fileupload.FileItem value)
getUploadedFileItem
public org.apache.commons.fileupload.FileItem getUploadedFileItem()
getPath
public java.lang.String getPath()
getPathDir
public java.io.File getPathDir()
getRelativePath
public java.lang.String getRelativePath()