com.github.tomakehurst.wiremock.jetty9.DefaultMultipartRequestConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wiremock-jre8-standalone Show documentation
Show all versions of wiremock-jre8-standalone Show documentation
A web service test double for all occasions - standalone edition
package com.github.tomakehurst.wiremock.jetty9;
import com.github.tomakehurst.wiremock.servlet.MultipartRequestConfigurer;
import javax.servlet.MultipartConfigElement;
import javax.servlet.http.HttpServletRequest;
public class DefaultMultipartRequestConfigurer implements MultipartRequestConfigurer {
@Override
public void configure(HttpServletRequest request) {
MultipartConfigElement multipartConfigElement = new MultipartConfigElement((String)null);
request.setAttribute("org.eclipse.jetty.multipartConfig", multipartConfigElement);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy