Package org.ametys.runtime.request
Class RequestFactory
java.lang.Object
org.apache.cocoon.servlet.multipart.RequestFactory
org.ametys.runtime.request.RequestFactory
Extension of the cocoon request factory to allow antivirus scanning of uploaded file
- 
Constructor Summary
ConstructorsConstructorDescriptionRequestFactory(boolean saveUploadedFilesToDisk, File uploadDirectory, boolean allowOverwrite, boolean silentlyRename, int maxUploadSize, String defaultCharEncoding) Default constructor seeRequestFactoryfor documentation - 
Method Summary
 
- 
Constructor Details
- 
RequestFactory
public RequestFactory(boolean saveUploadedFilesToDisk, File uploadDirectory, boolean allowOverwrite, boolean silentlyRename, int maxUploadSize, String defaultCharEncoding) Default constructor seeRequestFactoryfor documentation- Parameters:
 saveUploadedFilesToDisk- to save files to diskuploadDirectory- where to save files on diskallowOverwrite- to allow overwritesilentlyRename- to rename silentlymaxUploadSize- the maximum size of an uploaded filedefaultCharEncoding- the default encoding
 
 - 
 - 
Method Details
- 
getServletRequest
public HttpServletRequest getServletRequest(HttpServletRequest request) throws IOException, MultipartException - Overrides:
 getServletRequestin classRequestFactory- Throws:
 IOExceptionMultipartException
 
 -