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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intvoidinit()voidshutdown()voidupdate(@Nullable SystemConfigurationType value)
-
Constructor Details
-
MultipartFormConfiguration
public MultipartFormConfiguration(@Value("${server.tomcat.max-part-count:}") Integer tomcatMaxPartCount)
-
-
Method Details
-
update
- Specified by:
updatein interfacecom.evolveum.midpoint.repo.api.SystemConfigurationChangeListener
-
getMaxMultipartLimit
public static int getMaxMultipartLimit() -
init
@PostConstruct public void init() -
shutdown
@PreDestroy public void shutdown()
-