public class AjaxUploadProgress extends AjaxProgress
Modifier and Type | Class and Description |
---|---|
static interface |
AjaxUploadProgress.Delegate |
Constructor and Description |
---|
AjaxUploadProgress(String id,
File tempFile,
String fileName,
long streamLength)
Construct an AjaxUploadProgress.
|
Modifier and Type | Method and Description |
---|---|
String |
contentType() |
void |
dispose()
Deletes the temporary file.
|
String |
fileName()
Returns the name of the file the client uploaded.
|
void |
setContentType(String type) |
File |
tempFile()
Returns the File object that was written to during the upload.
|
cancel, completionEventsFired, copyAndTrack, failure, id, incrementValue, isCanceled, isDone, isFailed, isStarted, isSucceeded, maximum, percentage, progress, registerProgress, reset, setCompletionEventsFired, setDone, setFailure, setMaximum, setStatus, setValue, shouldReset, status, unregisterProgress, value
public AjaxUploadProgress(String id, File tempFile, String fileName, long streamLength)
id
- the id of this uploadtempFile
- the File that is being written tofileName
- the name of the file uploaded from the clientstreamLength
- the total length of the streampublic String fileName()
public File tempFile()
public String contentType()
public void setContentType(String type)
public void dispose()
dispose
in class AjaxProgress
Copyright © 2002 – 2020 Project Wonder.