Class MultipartFormConfiguration

java.lang.Object
com.evolveum.midpoint.web.component.form.MultipartFormConfiguration
All Implemented Interfaces:
com.evolveum.midpoint.repo.api.SystemConfigurationChangeListener

@Component public class MultipartFormConfiguration extends Object implements com.evolveum.midpoint.repo.api.SystemConfigurationChangeListener
Resolves the maximum number of multipart parts accepted in a submitted form. Explicit adminGuiConfiguration/formMaxMultiparts wins. Otherwise the Tomcat server.tomcat.max-part-count is used, so the form limit never silently undercuts the container limit, which Tomcat enforces before the form is processed.
  • Constructor Details

    • MultipartFormConfiguration

      public MultipartFormConfiguration(@Value("${server.tomcat.max-part-count:}") Integer tomcatMaxPartCount)
  • Method Details

    • update

      public void update(@Nullable @Nullable SystemConfigurationType value)
      Specified by:
      update in interface com.evolveum.midpoint.repo.api.SystemConfigurationChangeListener
    • getMaxMultipartLimit

      public static int getMaxMultipartLimit()
    • init

      @PostConstruct public void init()
    • shutdown

      @PreDestroy public void shutdown()