Class DefaultFileUploadPreProcessorService
java.lang.Object
org.hippoecm.frontend.plugins.yui.upload.processor.DefaultFileUploadPreProcessorService
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.io.IClusterable
,FileUploadPreProcessorService
public class DefaultFileUploadPreProcessorService
extends Object
implements FileUploadPreProcessorService
The default implementation of
FileUploadPreProcessorService
. This implementation contains a list of IUploadPreProcessor
and executes them all when the method process is invoked.- See Also:
-
Field Summary
Fields inherited from interface org.hippoecm.frontend.plugins.yui.upload.processor.FileUploadPreProcessorService
DEFAULT_ID, PRE_PROCESSOR_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final void
addPreProcessor
(IUploadPreProcessor preProcessor) getPreProcessorService
(IPluginContext pluginContext, IPluginConfig pluginConfig) getPreProcessorService
(IPluginContext pluginContext, IPluginConfig pluginConfig, String id) org.apache.wicket.markup.html.form.upload.FileUpload
process
(org.apache.commons.fileupload2.core.FileItem<?> fileItem, org.apache.wicket.markup.html.form.upload.FileUpload originalFileUpload)
-
Constructor Details
-
DefaultFileUploadPreProcessorService
public DefaultFileUploadPreProcessorService()
-
-
Method Details
-
getPreProcessorService
public static FileUploadPreProcessorService getPreProcessorService(IPluginContext pluginContext, IPluginConfig pluginConfig) -
getPreProcessorService
public static FileUploadPreProcessorService getPreProcessorService(IPluginContext pluginContext, IPluginConfig pluginConfig, String id) -
addPreProcessor
-
process
public org.apache.wicket.markup.html.form.upload.FileUpload process(org.apache.commons.fileupload2.core.FileItem<?> fileItem, org.apache.wicket.markup.html.form.upload.FileUpload originalFileUpload) throws Exception - Specified by:
process
in interfaceFileUploadPreProcessorService
- Throws:
Exception
-