Package | Description |
---|---|
com.jalios.jcms.context |
Provides context classes available in every request, you can extends them or use them as javabean.
|
com.jalios.jcms.handler |
Contains the javabean classes uses to process HTTP request (aka form handlers).
|
com.jalios.jcms.upload |
Modifier and Type | Method and Description |
---|---|
java.util.List<DocUploadInfo> |
JcmsContext.getUploadedFiles(java.lang.String field,
FileUploadOptions options)
Performs upload for the given field.
|
Modifier and Type | Method and Description |
---|---|
protected void |
JcmsUploadFormHandler.setFileDocuments(java.lang.String fieldName,
java.lang.String[] documents,
FileUploadOptions options)
Sets the file documents from the field name and the default language.
|
protected void |
JcmsUploadFormHandler.setFileDocuments(java.lang.String fieldName,
java.lang.String userLang,
java.lang.String[] documents,
FileUploadOptions options)
Sets the file documents for the specified field in the specified language.
|
protected void |
JcmsUploadFormHandler.setFileDocumentsML(java.lang.String fieldName,
java.lang.String[] documents,
FileUploadOptions options)
Sets the file documents from the field name for all the defined languages to the site.
|
protected void |
JcmsFormHandler.updateUploadedFields(java.lang.String fieldName,
java.lang.String[] values,
FileUploadOptions options)
Perform upload then, replace all values with value MultipartRequest.MULTIPART_UPLOAD
with the real File realtive path.
|
Modifier and Type | Field and Description |
---|---|
protected FileUploadOptions |
DocUploadInfo.uploadOptions |
Modifier and Type | Method and Description |
---|---|
static FileUploadOptions |
FileUploadOptions.getFileDocumentUploadOptions()
Utility method to retrieve a new FileUploadOptions instance suitable for FileDocument upload.
|
FileUploadOptions |
FileUploadOptions.setAuthorizedExtensions(java.util.Set<java.lang.String> authorizedExtensions)
Set the extensions authorized for upload.
|
FileUploadOptions |
FileUploadOptions.setAuthorizedExtensions(java.lang.String... authorizedExtensions)
Set the extensions authorized for upload.
|
FileUploadOptions |
FileUploadOptions.setContentType(java.lang.String contentType)
Set the content type to use, regardless of value received in request.
|
FileUploadOptions |
FileUploadOptions.setFileDocument(boolean fileDocument)
Set wether the upload will be performed for FileDocument or for any other use.
|
FileUploadOptions |
FileUploadOptions.setPreferredClass(java.lang.Class<? extends FileDocument> preferredClass)
Set the FileDocument class to preferred for upload if enabled and authorized.
|
Modifier and Type | Method and Description |
---|---|
void |
DocUploadInfo.doUpload(java.io.File file,
FileUploadOptions options)
Performs upload of the specified file with corresponding options.
|
void |
DocUploadInfo.doUpload(org.apache.commons.fileupload.FileItem item,
FileUploadOptions options)
Performs upload of the specified FileItem with corresponding options.
|
java.util.List<DocUploadInfo> |
UploadManager.getUploadedFiles(JcmsContext ctxt,
java.lang.String field,
FileUploadOptions options)
Performs upload for file received for the specified field.
|
Copyright © 2001-2022 Jalios SA. All Rights Reserved.