org.riotfamily.forms.fileupload
Class UploadStatus
java.lang.Object
org.riotfamily.forms.fileupload.UploadStatus
public class UploadStatus
- extends Object
Class that holds upload information like progress and transfer rate.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UploadStatus
protected UploadStatus(String uploadId,
HttpUploadRequest request)
getProgress
public int getProgress()
getProgressWidth
public int getProgressWidth(int totalWidth,
int stepWidth)
getKbTransfered
public int getKbTransfered()
getDataTransfered
public String getDataTransfered()
getTimeElapsed
public int getTimeElapsed()
getTransferRate
public String getTransferRate()
getException
public MultipartException getException()
setException
public void setException(MultipartException exception)
isComplete
public boolean isComplete()
isError
public boolean isError()
clear
public void clear()
getStatus
public static UploadStatus getStatus(String uploadId)
createUploadId
public static String createUploadId()