|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MultiPartRequest
Abstract wrapper class HTTP requests to handle multi-part data.
Method Summary | |
---|---|
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. |
List |
getErrors()
Returns a list of error messages that may have occurred while processing the request. |
File[] |
getFile(String fieldName)
Returns a File 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(HttpServletRequest request,
String saveDir)
|
Method Detail |
---|
void parse(HttpServletRequest request, String saveDir) throws IOException
IOException
Enumeration<String> getFileParameterNames()
String[] getContentType(String fieldName)
fieldName
- input field name
File[] getFile(String fieldName)
File
object for the filename specified or null if no files
are associated with the given field name.
fieldName
- input field name
String[] getFileNames(String fieldName)
fieldName
- input field name
String[] getFilesystemName(String fieldName)
fieldName
- input field name
String getParameter(String name)
name
- the name of the parameter to get
Enumeration<String> getParameterNames()
String[] getParameterValues(String name)
name
- the name of the parameter.
List getErrors()
MultiPartRequestWrapper
's errors field.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |