|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest
public class JakartaMultiPartRequest
Multipart form data request adapter for Jakarta Commons Fileupload package.
构造方法摘要 | |
---|---|
JakartaMultiPartRequest()
|
方法摘要 | |
---|---|
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. |
List<String> |
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(javax.servlet.http.HttpServletRequest request,
String saveDir)
Creates a new request wrapper to handle multi-part data using methods adapted from Jason Pell's multipart classes (see class description). |
void |
setLocaleProvider(com.opensymphony.xwork2.LocaleProvider provider)
|
void |
setMaxSize(String maxSize)
|
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public JakartaMultiPartRequest()
方法详细信息 |
---|
public void setMaxSize(String maxSize)
public void setLocaleProvider(com.opensymphony.xwork2.LocaleProvider provider)
public void parse(javax.servlet.http.HttpServletRequest request, String saveDir) throws IOException
MultiPartRequest
中的 parse
saveDir
- the directory to save off the filerequest
- the request containing the multipart
IOException
- is thrown if encoding fails.public Enumeration<String> getFileParameterNames()
MultiPartRequest
复制的描述
MultiPartRequest
中的 getFileParameterNames
public String[] getContentType(String fieldName)
MultiPartRequest
复制的描述
MultiPartRequest
中的 getContentType
fieldName
- input field name
public File[] getFile(String fieldName)
MultiPartRequest
复制的描述File
object for the filename specified or null if no files
are associated with the given field name.
MultiPartRequest
中的 getFile
fieldName
- input field name
public String[] getFileNames(String fieldName)
MultiPartRequest
复制的描述
MultiPartRequest
中的 getFileNames
fieldName
- input field name
public String[] getFilesystemName(String fieldName)
MultiPartRequest
复制的描述
MultiPartRequest
中的 getFilesystemName
fieldName
- input field name
public String getParameter(String name)
MultiPartRequest
复制的描述
MultiPartRequest
中的 getParameter
name
- the name of the parameter to get
public Enumeration<String> getParameterNames()
MultiPartRequest
复制的描述
MultiPartRequest
中的 getParameterNames
public String[] getParameterValues(String name)
MultiPartRequest
复制的描述
MultiPartRequest
中的 getParameterValues
name
- the name of the parameter.
public List<String> getErrors()
MultiPartRequest
复制的描述MultiPartRequestWrapper
's errors field.
MultiPartRequest
中的 getErrors
public void cleanUp()
MultiPartRequest
复制的描述
MultiPartRequest
中的 cleanUp
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |