public class SilverpeasUploadPolicy extends DefaultUploadPolicy
Modifier and Type | Field and Description |
---|---|
static String |
COLOR_ALPHA |
static String |
COLOR_BLUE |
static String |
COLOR_GREEN |
static String |
COLOR_RED |
static String |
MESSAGE_URL |
debugFile, debugOk, debugOut, DIALOG_MESSAGE_MAX_LINE_LENGTH, httpUploadParameterName, httpUploadParameterType, lastResponseMessage, patternError, patternSuccess, patternWarning
DEFAULT_AFTER_UPLOAD_TARGET, DEFAULT_AFTER_UPLOAD_URL, DEFAULT_ALBUM_ID, DEFAULT_ALLOW_HTTP_PERSISTENT, DEFAULT_ALLOWED_FILE_EXTENSIONS, DEFAULT_BROWSING_DIRECTORY, DEFAULT_DATE_FORMAT, DEFAULT_DEBUG_LEVEL, DEFAULT_FILE_CHOOSER_ICON_FROM_FILE_CONTENT, DEFAULT_FILE_CHOOSER_ICON_SIZE, DEFAULT_FILE_CHOOSER_IMAGE_PREVIEW, DEFAULT_FILE_FILTER_NAME, DEFAULT_FILE_LIST_VIEW_MODE, DEFAULT_FILENAME_ENCODING, DEFAULT_FORMDATA, DEFAULT_FTP_CREATE_DIRECTORY_STRUCTURE, DEFAULT_FTP_TRANSFERT_BINARY, DEFAULT_FTP_TRANSFERT_PASSIVE, DEFAULT_HIGH_QUALITY_PREVIEW, DEFAULT_HTTP_UPLOAD_PARAMETER_NAME, DEFAULT_HTTP_UPLOAD_PARAMETER_TYPE, DEFAULT_KEEP_ORIG_EXTENSION, DEFAULT_LANG, DEFAULT_LOOK_AND_FEEL, DEFAULT_MAX_CHUNK_SIZE, DEFAULT_MAX_FILE_SIZE, DEFAULT_MAX_HEIGHT, DEFAULT_MAX_WIDTH, DEFAULT_NB_FILES_PER_REQUEST, DEFAULT_PICTURE_COMPRESSION_QUALITY, DEFAULT_PICTURE_TRANSMIT_METADATA, DEFAULT_POST_URL, DEFAULT_READ_COOKIE_FROM_NAVIGATOR, DEFAULT_READ_USER_AGENT_FROM_NAVIGATOR, DEFAULT_REAL_MAX_HEIGHT, DEFAULT_REAL_MAX_WIDTH, DEFAULT_RETRY_MAX_NUMBER_OF, DEFAULT_RETRY_NB_SECONDS_BETWEEN, DEFAULT_SEND_MD5_SUM, DEFAULT_SERVER_PROTOCOL, DEFAULT_SHOW_LOGWINDOW, DEFAULT_SHOW_STATUSBAR, DEFAULT_SPECIFIC_HEADERS, DEFAULT_SSL_VERIFY_CERT, DEFAULT_STORE_BUFFERED_IMAGE, DEFAULT_STRING_UPLOAD_ERROR, DEFAULT_STRING_UPLOAD_SUCCESS, DEFAULT_STRING_UPLOAD_WARNING, DEFAULT_TARGET_PICTURE_FORMAT, DEFAULT_UPLOAD_POLICY, DEFAULT_URL_TO_SEND_ERROR_TO, EXEC_STATUS_READY, EXEC_STATUS_UPLOADING, HTTPUPLOADPARAMETERTYPE_ARRAY, HTTPUPLOADPARAMETERTYPE_ITERATION, HTTPUPLOADPARAMETERTYPE_ONE_FILE, PROP_AFTER_UPLOAD_TARGET, PROP_AFTER_UPLOAD_URL, PROP_ALBUM_ID, PROP_ALLOW_HTTP_PERSISTENT, PROP_ALLOWED_FILE_EXTENSIONS, PROP_BROWSING_DIRECTORY, PROP_DEBUG_LEVEL, PROP_FILE_CHOOSER_ICON_FROM_FILE_CONTENT, PROP_FILE_CHOOSER_ICON_SIZE, PROP_FILE_CHOOSER_IMAGE_PREVIEW, PROP_FILE_FILTER_NAME, PROP_FILE_LIST_VIEW_MODE, PROP_FILENAME_ENCODING, PROP_FORMDATA, PROP_FTP_CREATE_DIRECTORY_STRUCTURE, PROP_FTP_TRANSFERT_BINARY, PROP_FTP_TRANSFERT_PASSIVE, PROP_HIGH_QUALITY_PREVIEW, PROP_HTTP_UPLOAD_PARAMETER_NAME, PROP_HTTP_UPLOAD_PARAMETER_TYPE, PROP_KEEP_ORIG_EXTENSION, PROP_LANG, PROP_LOOK_AND_FEEL, PROP_MAX_CHUNK_SIZE, PROP_MAX_FILE_SIZE, PROP_MAX_HEIGHT, PROP_MAX_WIDTH, PROP_NB_FILES_PER_REQUEST, PROP_PICTURE_COMPRESSION_QUALITY, PROP_PICTURE_TRANSMIT_METADATA, PROP_POST_URL, PROP_READ_COOKIE_FROM_NAVIGATOR, PROP_READ_USER_AGENT_FROM_NAVIGATOR, PROP_REAL_MAX_HEIGHT, PROP_REAL_MAX_WIDTH, PROP_RETRY_MAX_NUMBER_OF, PROP_RETRY_NB_SECONDS_BETWEEN, PROP_SEND_MD5_SUM, PROP_SERVER_PROTOCOL, PROP_SHOW_LOGWINDOW, PROP_SHOW_STATUSBAR, PROP_SPECIFIC_HEADERS, PROP_SSL_VERIFY_CERT, PROP_STORE_BUFFERED_IMAGE, PROP_STRING_UPLOAD_ERROR, PROP_STRING_UPLOAD_SUCCESS, PROP_STRING_UPLOAD_WARNING, PROP_TARGET_PICTURE_FORMAT, PROP_UPLOAD_POLICY, PROP_URL_TO_SEND_ERROR_TO, SHOWLOGWINDOW_FALSE, SHOWLOGWINDOW_ONERROR, SHOWLOGWINDOW_TRUE
Constructor and Description |
---|
SilverpeasUploadPolicy(JUploadContext juploadContext)
The JUpload constructor for this upload policy.
|
Modifier and Type | Method and Description |
---|---|
void |
addComponentsToJUploadPanel(JUploadPanel jUploadPanel)
This methods allow the upload policy to override the default disposition
of the components on the applet.
|
void |
afterFileDropped(DropTargetDropEvent dropEvent)
Default reaction after a successful drop operation: no action.
|
protected String |
getMessage()
Loads the message from the specified URL.
|
void |
sendDebugInformation(String description,
Exception exception)
This method allows the applet to post debug information to the website (see
UploadPolicy.getUrlToSendErrorTo() ). |
addHeader, addMsgToDebugLog, afterUpload, alert, alertStr, beforeUpload, checkUploadSuccess, confirmDialogStr, createFileChooser, createFileData, createProgressPanel, createStatusBar, createTopPanel, deleteLog, displayDebug, displayErr, displayErr, displayErr, displayErr, displayInfo, displayParameterStatus, displayWarn, fileFilterAccept, fileFilterGetDescription, fileViewGetIcon, formatMessage, getAfterUploadTarget, getAfterUploadURL, getAllowedFileExtensions, getAllowHttpPersistent, getContext, getCurrentBrowsingDirectory, getDateFormat, getDebugLevel, getEncodedFilename, getFileChooserIconFromFileContent, getFileChooserIconSize, getFileFilterName, getFileListViewMode, getFilenameEncoding, getFormdata, getFtpCreateDirectoryStructure, getFtpTransfertBinary, getFtpTransfertPassive, getHttpUploadParameterName, getHttpUploadParameterType, getLastException, getLastResponseBody, getLastResponseMessage, getLocale, getLocalizedString, getLookAndFeel, getMaxChunkSize, getMaxFileSize, getNbFilesPerRequest, getPostURL, getReadCookieFromNavigator, getReadUserAgentFromNavigator, getRetryMaxNumberOf, getRetryNbSecondsBetween, getSendMD5Sum, getServerProtocol, getShowLogWindow, getSpecificHeaders, getSslVerifyCert, getStringUploadError, getStringUploadSuccess, getStringUploadWarning, getUploadFilename, getUploadName, getUrlToSendErrorTo, onAppendHeader, onFileDoubleClicked, onFileSelected, setAfterUploadURL, setAllowedFileExtensions, setAllowHttpPersistent, setCurrentBrowsingDirectory, setCurrentBrowsingDirectory, setCursor, setDebugLevel, setDebugLevel, setFileChooserIconFromFileContent, setFileChooserIconSize, setFileFilterName, setFileListViewMode, setFilenameEncoding, setFtpCreateDirectoryStructure, setFtpTransfertBinary, setFtpTransfertPassive, setHttpUploadParameterName, setHttpUploadParameterType, setLang, setLastException, setLookAndFeel, setMaxChunkSize, setMaxFileSize, setNbFilesPerRequest, setPostURL, setProperty, setReadCookieFromNavigator, setReadUserAgentFromNavigator, setRetryMaxNumberOf, setRetryNbSecondsBetween, setSendMD5Sum, setServerProtocol, setShowLogWindow, setShowStatusbar, setSpecificHeaders, setSslVerifyCert, setStringUploadError, setStringUploadSuccess, setStringUploadWarning, setUrlToSendErrorTo, setWaitCursor, start, updateButtonState
public static final String MESSAGE_URL
public static final String COLOR_RED
public static final String COLOR_BLUE
public static final String COLOR_GREEN
public static final String COLOR_ALPHA
public SilverpeasUploadPolicy(JUploadContext juploadContext) throws JUploadException
UploadPolicyFactory
juploadContext
- JUploadException
public void addComponentsToJUploadPanel(JUploadPanel jUploadPanel)
addComponentsToJUploadPanel
in interface UploadPolicy
addComponentsToJUploadPanel
in class DefaultUploadPolicy
jUploadPanel
- The main applet panel.UploadPolicy.addComponentsToJUploadPanel(JUploadPanel)
protected String getMessage()
public void afterFileDropped(DropTargetDropEvent dropEvent)
afterFileDropped
in interface UploadPolicy
afterFileDropped
in class DefaultUploadPolicy
dropEvent
- The event containing the dropped fileUploadPolicy.afterFileDropped(DropTargetDropEvent)
public void sendDebugInformation(String description, Exception exception)
UploadPolicy
UploadPolicy.getUrlToSendErrorTo()
).
Then, it is possible to log the error, to send a mail...sendDebugInformation
in interface UploadPolicy
sendDebugInformation
in class DefaultUploadPolicy
description
- exception
- The java exception that was raised, or null if no exception.UploadPolicy.sendDebugInformation(String, Exception)
Copyright © 2015. All rights reserved.