wt.clients.doc
Class SecondaryContentLoader.HTTPUploadDownloadController
java.lang.Object
wt.clients.util.http.HTTPUploadDownloadListenerSupport
wt.clients.doc.SecondaryContentLoader.HTTPUploadDownloadController
- All Implemented Interfaces:
- EventListener, HTTPUploadDownloadListener
- Enclosing class:
- SecondaryContentLoader
- private static class SecondaryContentLoader.HTTPUploadDownloadController
- extends HTTPUploadDownloadListenerSupport
Method Summary |
void |
invalidFile(String path,
int index,
int operationType,
String reason)
Callback to inform listener that an invalid file download was requested. |
void |
invalidFile(String filePath,
int fileIndex,
int operationType,
String messageKey,
Object[] params)
The file at fileIndex is invalid. |
Methods inherited from class wt.clients.util.http.HTTPUploadDownloadListenerSupport |
confirmFileOverwrite, fileOperationProgress, fileOperationProgress, fileOperationProgress, fileOperationProgress, fileOperationStatusChange, fileOperationTypeUnknown, locateFile, openApplication, openURL, operationFinished, operationStatusChange, propertyChange |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecondaryContentLoader.HTTPUploadDownloadController
private SecondaryContentLoader.HTTPUploadDownloadController()
invalidFile
public void invalidFile(String path,
int index,
int operationType,
String reason)
- Callback to inform listener that an invalid file download was requested.
The listener may determine and set the path for the entry. If the
listener does attempt to determine a local file path, this should be done without launching
a new thread as the download operation will continue upon return from the
downloadPathNotSet()
method.
- Specified by:
invalidFile
in interface HTTPUploadDownloadListener
- Overrides:
invalidFile
in class HTTPUploadDownloadListenerSupport
- Parameters:
path
- the local file path.index
- the index of the file entry.operationType
- operation type OPERATION_TYPE_UPLOAD or OPERATION_TYPE_DOWNLOAD.reason
- the reason the file is invalid.
invalidFile
public void invalidFile(String filePath,
int fileIndex,
int operationType,
String messageKey,
Object[] params)
- The file at fileIndex is invalid.
- Specified by:
invalidFile
in interface HTTPUploadDownloadListener
- Overrides:
invalidFile
in class HTTPUploadDownloadListenerSupport
- Parameters:
filePath
- the local file path.fileIndex
- the index of the file entry.operationType
- operation type OPERATION_TYPE_UPLOAD or OPERATION_TYPE_DOWNLOAD.messageKey
- the resource bundle key to the reason messageparams
- the text inserts for the reason message