er.ajax
Class AjaxFileUploadRequestHandler
java.lang.Object
com.webobjects.appserver.WORequestHandler
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
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
AjaxFileUploadRequestHandler
public AjaxFileUploadRequestHandler()
AjaxFileUploadRequestHandler
protected AjaxFileUploadRequestHandler(String tempFilePath,
long maxUploadSize)
AjaxFileUploadRequestHandler
public AjaxFileUploadRequestHandler(File tempFileFolder,
long maxUploadSize)
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 sessionid - the id of the progress model to retrieve
- Returns:
- the AjaxUploadProgress
Copyright © 2002 – 2007 Project Wonder.