All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.tomakehurst.wiremock.jetty9.DefaultMultipartRequestConfigurer Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
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