java.lang.Object
org.apache.wicket.protocol.http.servlet.UploadInfo
- All Implemented Interfaces:
Serializable
,IClusterable
Holds information about an upload, also has useful querying methods.
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
int
long
long
long
void
setBytesUploaded
(long bytesUploaded) Sets bytes uploaded so far
-
Constructor Details
-
UploadInfo
- Parameters:
totalBytes
-
-
-
Method Details
-
getBytesUploaded
- Returns:
- bytes uploaded so far
-
setBytesUploaded
Sets bytes uploaded so far- Parameters:
bytesUploaded
-
-
getBytesUploadedString
- Returns:
- human readable string of bytes uploaded so far
-
getTotalBytesString
- Returns:
- human readable string of total number of bytes
-
getTotalBytes
- Returns:
- total bytes in the upload
-
getElapsedMilliseconds
- Returns:
- milliseconds elapsed since upload started
-
getElapsedSeconds
- Returns:
- seconds elapsed since upload started
-
getTransferRateBPS
- Returns:
- transfer rate in bits per second
-
getTransferRateString
- Returns:
- transfer rate in a human readable string
-
getPercentageComplete
- Returns:
- percent of the upload completed
-
getRemainingMilliseconds
- Returns:
- estimate of the remaining number of milliseconds
-
getRemainingTimeString
- Returns:
- estimate of the remaining time in a human readable string
-