Project Wonder 5.0

er.ajax
Class AjaxUploadProgress

java.lang.Object
  extended by er.ajax.AjaxProgress
      extended by er.ajax.AjaxUploadProgress

public class AjaxUploadProgress
extends AjaxProgress

AjaxUploadProgress is an AjaxProgress extended for tracking an Ajax File Upload.

Author:
mschrag

Nested Class Summary
static interface AjaxUploadProgress.Delegate
           
 
Constructor Summary
AjaxUploadProgress(java.lang.String id, java.io.File tempFile, java.lang.String fileName, int streamLength)
          Construct an AjaxUploadProgress.
 
Method Summary
 java.lang.String contentType()
           
 void dispose()
          Deletes the temporary file.
 java.lang.String fileName()
          Returns the name of the file the client uploaded.
 void setContentType(java.lang.String type)
           
 java.io.File tempFile()
          Returns the File object that was written to during the upload.
 
Methods inherited from class er.ajax.AjaxProgress
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxUploadProgress

public AjaxUploadProgress(java.lang.String id,
                          java.io.File tempFile,
                          java.lang.String fileName,
                          int streamLength)
Construct an AjaxUploadProgress.

Parameters:
id - the id of this upload
tempFile - the File that is being written to
fileName - the name of the file uploaded from the client
streamLength - the total length of the stream
Method Detail

fileName

public java.lang.String fileName()
Returns the name of the file the client uploaded.

Returns:
the name of the file the client uploaded

tempFile

public java.io.File tempFile()
Returns the File object that was written to during the upload.

Returns:
the File object that was written to during the upload

contentType

public java.lang.String contentType()

setContentType

public void setContentType(java.lang.String type)

dispose

public void dispose()
Deletes the temporary file.

Overrides:
dispose in class AjaxProgress

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.