public class JakartaStreamMultiPartRequest extends AbstractMultiPartRequest
BUFFER_SIZE, bufferSize, defaultEncoding, defaultLocale, errors, maxSize, maxSizeProvided| Constructor and Description |
|---|
JakartaStreamMultiPartRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Cleans up all uploaded file, should be called at the end of request
|
String[] |
getContentType(String fieldName)
Returns the content type(s) of the file(s) associated with the specified field name
(as supplied by the client browser), or null if no files are associated with the
given field name.
|
UploadedFile[] |
getFile(String fieldName)
Returns a
UploadedFile object for the filename specified or null if no files
are associated with the given field name. |
String[] |
getFileNames(String fieldName)
Returns a String[] of file names for files associated with the specified input field name
|
Enumeration<String> |
getFileParameterNames()
Returns an enumeration of the parameter names for uploaded files
|
String[] |
getFilesystemName(String fieldName)
Returns the file system name(s) of files associated with the given field name or
null if no files are associated with the given field name.
|
String |
getParameter(String name)
Returns the specified request parameter.
|
Enumeration<String> |
getParameterNames()
Returns an enumeration of String parameter names.
|
String[] |
getParameterValues(String name)
Returns a list of all parameter values associated with a parameter name.
|
void |
parse(javax.servlet.http.HttpServletRequest request,
String saveDir) |
buildErrorMessage, getErrors, setBufferSize, setDefaultEncoding, setLocale, setLocaleProvider, setMaxSizepublic void cleanUp()
MultiPartRequestpublic String[] getContentType(String fieldName)
MultiPartRequestfieldName - input field namepublic UploadedFile[] getFile(String fieldName)
MultiPartRequestUploadedFile object for the filename specified or null if no files
are associated with the given field name.fieldName - input field namepublic String[] getFileNames(String fieldName)
MultiPartRequestfieldName - input field namepublic Enumeration<String> getFileParameterNames()
MultiPartRequestpublic String[] getFilesystemName(String fieldName)
MultiPartRequestfieldName - input field namepublic String getParameter(String name)
MultiPartRequestname - the name of the parameter to getpublic Enumeration<String> getParameterNames()
MultiPartRequestpublic String[] getParameterValues(String name)
MultiPartRequestname - the name of the parameter.public void parse(javax.servlet.http.HttpServletRequest request,
String saveDir)
throws IOException
IOExceptionCopyright © 2000–2016 Apache Software Foundation. All rights reserved.