Class UploadModule
java.lang.Object
org.apache.tapestry5.upload.modules.UploadModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.fileupload.FileItemFactory
buildDefaultFileItemFactory
(int repositoryThreshold, String repositoryLocation) The default FileItemFactory used by the MultipartDecoder isDiskFileItemFactory
.static MultipartDecoder
buildMultipartDecoder
(PerthreadManager perthreadManager, RegistryShutdownHub shutdownHub, MultipartDecoderImpl multipartDecoder) static void
contributeComponentClassResolver
(Configuration<LibraryMapping> configuration) static void
contributeComponentEventRequestHandler
(OrderedConfiguration<ComponentEventRequestFilter> configuration) Adds UploadException to the pipeline, between Secure and Ajax (both provided by TapestryModule).static void
contributeFactoryDefaults
(MappedConfiguration<String, String> configuration) static void
contributeHttpServletRequestHandler
(OrderedConfiguration<HttpServletRequestFilter> configuration, MultipartDecoder multipartDecoder) Contributes a filter, "MultipartFilter" after "IgnoredPaths".
-
Constructor Details
-
UploadModule
public UploadModule()
-
-
Method Details
-
contributeComponentClassResolver
-
buildMultipartDecoder
@Scope("perthread") public static MultipartDecoder buildMultipartDecoder(PerthreadManager perthreadManager, RegistryShutdownHub shutdownHub, @Autobuild MultipartDecoderImpl multipartDecoder) -
contributeHttpServletRequestHandler
public static void contributeHttpServletRequestHandler(OrderedConfiguration<HttpServletRequestFilter> configuration, MultipartDecoder multipartDecoder) Contributes a filter, "MultipartFilter" after "IgnoredPaths". -
contributeComponentEventRequestHandler
public static void contributeComponentEventRequestHandler(OrderedConfiguration<ComponentEventRequestFilter> configuration) Adds UploadException to the pipeline, between Secure and Ajax (both provided by TapestryModule). UploadException is responsible for triggering the upload exception event. -
buildDefaultFileItemFactory
public static org.apache.commons.fileupload.FileItemFactory buildDefaultFileItemFactory(@Symbol("upload.repository-threshold") int repositoryThreshold, @Symbol("upload.repository-location") String repositoryLocation) The default FileItemFactory used by the MultipartDecoder isDiskFileItemFactory
. -
contributeFactoryDefaults
-