public class MultipartFormDataParser extends Object implements AutoCloseable
Constructor and Description |
---|
MultipartFormDataParser(javax.servlet.http.HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
If any file is created on the disk, delete them all.
|
void |
close()
Alias for
cleanUp() . |
String |
get(String key) |
org.apache.commons.fileupload.FileItem |
getFileItem(String key) |
static boolean |
isMultiPartForm(String contentType)
Checks a Content-Type string to assert if it is "multipart/form-data".
|
public MultipartFormDataParser(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
javax.servlet.ServletException
public org.apache.commons.fileupload.FileItem getFileItem(String key)
public void cleanUp()
public void close()
cleanUp()
.close
in interface AutoCloseable
public static boolean isMultiPartForm(@CheckForNull String contentType)
contentType
- Content-Type string.true
if the content type is "multipart/form-data", otherwise false
.Copyright © 2004–2021. All rights reserved.