pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.core
Class UploadProgressCheck

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.UploadProgressCheck

public class UploadProgressCheck
extends Controller

allows to access the progress of form based file uploads.

Version:
$Revision: 1832 $
Author:
Thomas Weber

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
UploadProgressCheck()
           
 
Method Summary
 void getProgress(ServiceRequest request)
          returns the state of the requested UploadProgressCheck as a JSON result.
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadProgressCheck

public UploadProgressCheck()
Method Detail

getProgress

@Action(value="getUploadProgress", generate=true, stripSitemapID=true)
@Permission(value="uploadProgress")
public void getProgress(ServiceRequest request)
returns the state of the requested UploadProgressCheck as a JSON result.

The id of the requested UploadProgressCheck is given by the request parameter id.

{"progress":55,"stale":false} would represent a UploadProgress at 55% which is not yet stale.

Parameters:
request - the current request
See Also:
UploadProgress