public class MultipartFormDataParser extends Object
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.
|
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 static boolean isMultiPartForm(@CheckForNull String contentType)
contentType
- Content-Type string.true
if the content type is "multipart/form-data", otherwise false
.Copyright © 2017. All rights reserved.