er.ajax
Class AjaxFileUploadRequestHandler
java.lang.Object
com.webobjects.appserver.WORequestHandler
er.ajax.AjaxFileUploadRequestHandler
public class AjaxFileUploadRequestHandler
- extends com.webobjects.appserver.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
Properties |
er.ajax.AjaxFileRequestHandler.tempFileFolder | the location of the temp file folder. If not specified, this
will go to Java's default temporary folder (/tmp on Mac OS X) |
er.ajax.AjaxFileRequestHandler.maxUploadSize | the maximum size in bytes of the file |
Fields inherited from class com.webobjects.appserver.WORequestHandler |
DidHandleRequestNotification |
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 |
UPLOAD_FINISHED_KEY
public static final java.lang.String UPLOAD_FINISHED_KEY
- See Also:
- Constant Field Values
REQUEST_HANDLER_KEY
public static final java.lang.String REQUEST_HANDLER_KEY
- See Also:
- Constant Field Values
log
public static final org.apache.log4j.Logger log
AjaxFileUploadRequestHandler
public AjaxFileUploadRequestHandler()
AjaxFileUploadRequestHandler
protected AjaxFileUploadRequestHandler(java.lang.String tempFilePath,
long maxUploadSize)
AjaxFileUploadRequestHandler
public AjaxFileUploadRequestHandler(java.io.File tempFileFolder,
long maxUploadSize)
handleRequest
public com.webobjects.appserver.WOResponse handleRequest(com.webobjects.appserver.WORequest request)
- Specified by:
handleRequest
in class com.webobjects.appserver.WORequestHandler
downloadFinished
protected void downloadFinished(AjaxUploadProgress progress)
ajaxUploadProgress
public static AjaxUploadProgress ajaxUploadProgress(com.webobjects.appserver.WOSession session,
java.lang.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.