java.lang.Object
cloud.piranha.extension.apache.fileupload.ApacheMultiPartInitializer
All Implemented Interfaces:
jakarta.servlet.ServletContainerInitializer

public class ApacheMultiPartInitializer extends Object implements jakarta.servlet.ServletContainerInitializer
The ServletContainerInitializer for the ApacheMultiPartManager.

The ServletContainerInitializer performs the following steps:

  1. Sets the MultiPartManager to an instance of ApacheMultiPartManager.
  2. Adds the FileCleanerCleanup listener that cleans up the temporary files.
Author:
Manfred Riem ([email protected])
  • Constructor Details

    • ApacheMultiPartInitializer

      public ApacheMultiPartInitializer()
  • Method Details

    • onStartup

      public void onStartup(Set<Class<?>> classes, jakarta.servlet.ServletContext servletContext) throws jakarta.servlet.ServletException
      Specified by:
      onStartup in interface jakarta.servlet.ServletContainerInitializer
      Throws:
      jakarta.servlet.ServletException