org.riotfamily.forms.fileupload
Class UploadStatus

java.lang.Object
  extended by org.riotfamily.forms.fileupload.UploadStatus

public class UploadStatus
extends Object

Class that holds upload information like progress and transfer rate.


Constructor Summary
protected UploadStatus(String uploadId, HttpUploadRequest request)
           
 
Method Summary
 void clear()
           
static String createUploadId()
           
 String getDataTransfered()
           
 MultipartException getException()
           
 int getKbTransfered()
           
 int getProgress()
           
 int getProgressWidth(int totalWidth, int stepWidth)
           
static UploadStatus getStatus(String uploadId)
           
 int getTimeElapsed()
           
 String getTransferRate()
           
 boolean isComplete()
           
 boolean isError()
           
 void setException(MultipartException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadStatus

protected UploadStatus(String uploadId,
                       HttpUploadRequest request)
Method Detail

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()