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 ofFileUploadPreProcessorService
. This implementation contains a list ofIUploadPreProcessor
and executes them all when the method process is invoked.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.hippoecm.frontend.plugins.yui.upload.processor.FileUploadPreProcessorService
DEFAULT_ID, PRE_PROCESSOR_ID
-
-
Constructor Summary
Constructors Constructor Description DefaultFileUploadPreProcessorService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addPreProcessor(IUploadPreProcessor preProcessor)
static FileUploadPreProcessorService
getPreProcessorService(IPluginContext pluginContext, IPluginConfig pluginConfig)
static FileUploadPreProcessorService
getPreProcessorService(IPluginContext pluginContext, IPluginConfig pluginConfig, String id)
org.apache.wicket.markup.html.form.upload.FileUpload
process(org.apache.commons.fileupload.FileItem fileItem, org.apache.wicket.markup.html.form.upload.FileUpload originalFileUpload)
-
-
-
Method Detail
-
getPreProcessorService
public static FileUploadPreProcessorService getPreProcessorService(IPluginContext pluginContext, IPluginConfig pluginConfig)
-
getPreProcessorService
public static FileUploadPreProcessorService getPreProcessorService(IPluginContext pluginContext, IPluginConfig pluginConfig, String id)
-
addPreProcessor
protected final void addPreProcessor(IUploadPreProcessor preProcessor)
-
process
public org.apache.wicket.markup.html.form.upload.FileUpload process(org.apache.commons.fileupload.FileItem fileItem, org.apache.wicket.markup.html.form.upload.FileUpload originalFileUpload) throws Exception
- Specified by:
process
in interfaceFileUploadPreProcessorService
- Throws:
Exception
-
-