Project Wonder 5.0.0.8658

er.ajax
Class AjaxFileUploadRequestHandler

java.lang.Object
  extended by com.webobjects.appserver.WORequestHandler
      extended by er.ajax.AjaxFileUploadRequestHandler

public class AjaxFileUploadRequestHandler
extends WORequestHandler

Provides the backend for Ajax uploads. This has to be implemented differently than a normal file upload because we can't block the session while uploading.

Author:
mschrag

Field Summary
static Logger log
           
static String REQUEST_HANDLER_KEY
           
static String UPLOAD_FINISHED_KEY
           
 
Fields inherited from class com.webobjects.appserver.WORequestHandler
DidHandleRequestNotification
 
Constructor Summary
  AjaxFileUploadRequestHandler()
           
  AjaxFileUploadRequestHandler(File tempFileFolder, long maxUploadSize)
           
protected AjaxFileUploadRequestHandler(String tempFilePath, long maxUploadSize)
           
 
Method Summary
static AjaxUploadProgress ajaxUploadProgress(WOSession session, String id)
          Type-safe wrapper around AjaxProgressBar.progress.
protected  void downloadFinished(AjaxUploadProgress progress)
           
 WOResponse handleRequest(WORequest request)
           
 
Methods inherited from class com.webobjects.appserver.WORequestHandler
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UPLOAD_FINISHED_KEY

public static final String UPLOAD_FINISHED_KEY
See Also:
Constant Field Values

REQUEST_HANDLER_KEY

public static final String REQUEST_HANDLER_KEY
See Also:
Constant Field Values

log

public static final Logger log
Constructor Detail

AjaxFileUploadRequestHandler

public AjaxFileUploadRequestHandler()

AjaxFileUploadRequestHandler

protected AjaxFileUploadRequestHandler(String tempFilePath,
                                       long maxUploadSize)

AjaxFileUploadRequestHandler

public AjaxFileUploadRequestHandler(File tempFileFolder,
                                    long maxUploadSize)
Method Detail

handleRequest

public WOResponse handleRequest(WORequest request)
Specified by:
handleRequest in class WORequestHandler

downloadFinished

protected void downloadFinished(AjaxUploadProgress progress)

ajaxUploadProgress

public static AjaxUploadProgress ajaxUploadProgress(WOSession session,
                                                    String id)
Type-safe wrapper around AjaxProgressBar.progress.

Parameters:
session - the session
id - the id of the progress model to retrieve
Returns:
the AjaxUploadProgress

Last updated: Fri, Nov 21, 2008 • 04:36 AM EST

Copyright © 2002 – 2007 Project Wonder.