public MultipartFormDataParser createMultipartFormDataParser() {
        MultipartFormDataParser parser = new MemoryMultipartFormDataParser();
        if (maxRequestSize > -1L) {
            parser.setMaxRequestSize(maxRequestSize);
        }
        if (maxFileSize > -1L) {
            parser.setMaxFileSize(maxFileSize);
        }
        parser.setAllowedFileExtensions(allowedFileExtensions);
        parser.setDeniedFileExtensions(deniedFileExtensions);
        return parser;
    }
public MultipartFormDataParser createMultipartFormDataParser ( ) { MultipartFormDataParser parser = new MemoryMultipartFormDataParser ( ) ; if ( maxRequestSize > - 1L ) { parser . setMaxRequestSize ( maxRequestSize ) ; } if ( maxFileSize > - 1L ) { parser . setMaxFileSize ( maxFileSize ) ; } parser . setAllowedFileExtensions ( allowedFileExtensions ) ; parser . setDeniedFileExtensions ( deniedFileExtensions ) ; return parser ; }
Creates a new MultipartFormDataParser object.

@return the multipart form data parser