📄 uploadpolicy.java
字号:
*/
public final static String PROP_AFTER_UPLOAD_URL = "afterUploadURL";
/**
* Parameter/Property name for allowing persistent HTTP connections.
*/
public final static String PROP_ALLOW_HTTP_PERSISTENT = "allowHttpPersistent";
/**
* Parameter/Property name for specifying the allowed file extensions
*/
public final static String PROP_ALLOWED_FILE_EXTENSIONS = "allowedFileExtensions";
/**
* Parameter/Property name for specifying the album id
*/
public final static String PROP_ALBUM_ID = "albumId";
/**
* Indicates the directory, from which the applet should open the browsing
* window (file chooser) first.
*/
public final static String PROP_BROWSING_DIRECTORY = "browsingDirectory";
/**
* Parameter/Property name for specifying if images should be cached in
* memory. Be careful: if set to true, you'll probably have memory problems
* while in a navigator.
*/
public final static String PROP_STORE_BUFFERED_IMAGE = "storeBufferedImage";
/**
* Parameter/Property name for specifying the debug level
*/
public final static String PROP_DEBUG_LEVEL = "debugLevel";
/**
* This parameter allows to control whether the file icons in the file
* chooser are calculated from the file content. This is currently only
* available for pictures.<BR>
* If activated, the file chooser will open each pictures, and calculate the
* icon by resizing the picture. This is done in by using thread of minimam
* priority, to minimize performances impact on the navigator. Available
* values are: <DIR>
* <LI>-1: disabled. The default system are used.
* <LI>0 (default): available only in picture mode. That is: the current
* upload policy is an instance of or a class inheriting from
* {@link PictureUploadPolicy}
* <LI>1: available for all upload policies. </DIR>
*/
public final static String PROP_FILE_CHOOSER_ICON_FROM_FILE_CONTENT = "fileChooserIconFromFileContent";
/**
* This parameter allows to control the size of icons, in pixels, in the
* file chooser. Used only when fileChooserIconFromFileContent is activated.
*/
public final static String PROP_FILE_CHOOSER_ICON_SIZE = "fileChooserIconSize";
/**
* Allows control on the preview on the file chooser. Only for
* {@link PictureUploadPolicy} and its inheritants.
*/
public final static String PROP_FILE_CHOOSER_IMAGE_PREVIEW = "fileChooserImagePreview";
/**
* Parameter/Property name for specifying the encoding of file names.
*/
public final static String PROP_FILENAME_ENCODING = "filenameEncoding";
/**
* Parameter/Property name for specifying additional form data.
*/
public final static String PROP_FORMDATA = "formdata";
/**
* Parameter/Property name to specify, when in FTP mode, if subfolders must
* be created, or if all files must be uploaded on the root of postURL.
*/
public final static String PROP_FTP_CREATE_DIRECTORY_STRUCTURE = "ftpCreateDirectoryStructure";
/** FTP: binary or ascii mode */
public final static String PROP_FTP_TRANSFERT_BINARY = "ftpTransfertBinary";
/** FTP: passive or active mode */
public final static String PROP_FTP_TRANSFERT_PASSIVE = "ftpTransfertPassive";
/**
* Parameter/Property name for specifying high quality previews.
*/
public final static String PROP_HIGH_QUALITY_PREVIEW = "highQualityPreview";
/**
* Parameter/Property name for specifying the UI language
*/
public final static String PROP_LANG = "lang";
/**
* Parameter/Property name for specifying a list of specific headers, that
* will be added to all HTTP request to the server. The parameter can be
* used for Basic Authentication, by adding this header: Authorization:
* Basic [Bae64 encoding of the string "user:password"]
*/
public final static String PROP_SPECIFIC_HEADERS = "specificHeaders";
/**
* Parameter/Property name for specifying a PLAF class to load.
*/
public final static String PROP_LOOK_AND_FEEL = "lookAndFeel";
/**
* Parameter/Property name for specifying the maximum size of a chunk of
* uploaded data.
*/
public final static String PROP_MAX_CHUNK_SIZE = "maxChunkSize";
/**
* Parameter/Property name for specifying the maximum size of a single file.
*/
public final static String PROP_MAX_FILE_SIZE = "maxFileSize";
/**
* Parameter/Property name for specifying the maximum height of a picture.
*/
public final static String PROP_MAX_HEIGHT = "maxPicHeight";
/**
* Parameter/Property name for specifying the maximum width of a picture.
*/
public final static String PROP_MAX_WIDTH = "maxPicWidth";
/**
* Parameter/Property name for specifying the maximum number of file to be
* uploaded in a single request.
*/
public final static String PROP_NB_FILES_PER_REQUEST = "nbFilesPerRequest";
/**
* Parameter/Property name for specifying compression of the written picture
* file, if any.
*/
public final static String PROP_PICTURE_COMPRESSION_QUALITY = "pictureCompressionQuality";
/**
* Parameter/Property name for specifying whether picture metadata (EXIF
* coming from the camera for instance.
*/
public final static String PROP_PICTURE_TRANSMIT_METADATA = "pictureTransmitMetadata";
/**
* Parameter/Property name for specifying URL of the upload post request.
*/
public final static String PROP_POST_URL = "postURL";
/**
* Parameter/Property name for specifying URL of the upload post request.
*/
public final static String PROP_AFTER_UPLOAD_TARGET = "afterUploadTarget";
/**
* Parameter/Property name for specifying the real (server-side-desired)
* picture height.
*/
public final static String PROP_REAL_MAX_HEIGHT = "realMaxPicHeight";
/**
* Parameter/Property name for specifying the real (server-side-desired)
* picture width.
*/
public final static String PROP_REAL_MAX_WIDTH = "realMaxPicWidth";
/**
* Parameter/Property name for specifying the server protocol version.
*/
public final static String PROP_SERVER_PROTOCOL = "serverProtocol";
/**
* Parameter/Property name for specifying if the log window should be
* visible.
*/
public final static String PROP_SHOW_LOGWINDOW = "showLogWindow";
/**
* Parameter/Property name for specifying if the status bar should be
* visible.
*/
public final static String PROP_SHOW_STATUSBAR = "showStatusbar";
/**
* Parameter/Property name for specifying how certificates are handled when
* uploading via SSL.
*/
public final static String PROP_SSL_VERIFY_CERT = "sslVerifyCert";
/**
* Parameter/Property name for specifying if the pattern that indicates an
* error in the server's response-body.
*/
public final static String PROP_STRING_UPLOAD_ERROR = "stringUploadError";
/**
* Parameter/Property name for specifying if the pattern that indicates
* success in the server's response-body.
*/
public final static String PROP_STRING_UPLOAD_SUCCESS = "stringUploadSuccess";
/**
* Parameter/Property name for specifying if the pattern that indicates a
* warning in the server's response-body.
*/
public final static String PROP_STRING_UPLOAD_WARNING = "stringUploadWarning";
/**
* Parameter/Property name for specifying the target picture format.
*/
public final static String PROP_TARGET_PICTURE_FORMAT = "targetPictureFormat";
/**
* Parameter/Property name for specifying the upload policy class.
*/
public final static String PROP_UPLOAD_POLICY = "uploadPolicy";
/**
* Parameter/Property name for specifying the URL for delivering error
* reports.
*/
public final static String PROP_URL_TO_SEND_ERROR_TO = "urlToSendErrorTo";
/***************************************************************************
* ************************************************************************
* ************************* LIST OF DEFAULT VALUES **********************
* ************************************************************************
**************************************************************************/
/**
* Default value for parameter "afterUploadTarget".
*/
public final static String DEFAULT_AFTER_UPLOAD_TARGET = null;
/**
* Default value for parameter "afterUploadURL"
*/
public final static String DEFAULT_AFTER_UPLOAD_URL = null;
/**
* Default value for parameter "allowHttpPersisten".
*/
public final static boolean DEFAULT_ALLOW_HTTP_PERSISTENT = false;
/**
* Default value for parameter "allowedFileExtensions".
*/
public final static String DEFAULT_ALLOWED_FILE_EXTENSIONS = null;
/**
* Default value for parameter "albumId".
*/
public final static int DEFAULT_ALBUM_ID = 0;
/**
* Default value for parameter "storeBufferedImage". Be careful: if set to
* true, you'll probably have memory problems while in a navigator.
*/
public final static boolean DEFAULT_STORE_BUFFERED_IMAGE = false;
/**
* Default value for the browsing window first: no specific directory.
*/
public final static String DEFAULT_BROWSING_DIRECTORY = null;
/**
* Default value for date format when changing date/time variable to String.
*/
public final static String DEFAULT_DATE_FORMAT = "dd/MM/yyyy HH:mm:ss";
/**
* Default value for parameter "debugLevel".
*/
public final static int DEFAULT_DEBUG_LEVEL = 0;
/**
* Default value for applet parameter "fileChooserIconFromFileContent".
*
* @see #PROP_FILE_CHOOSER_ICON_FROM_FILE_CONTENT
*/
public final static int DEFAULT_FILE_CHOOSER_ICON_FROM_FILE_CONTENT = 0;
/**
* Default value for applet parameter "fileChooserIconSize".
*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -