|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.dispatcher.multipart.MultiPartRequest
public abstract class MultiPartRequest
Abstract wrapper class HTTP requests to handle multi-part data.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
MultiPartRequest()
|
Method Summary | |
---|---|
abstract java.lang.String[] |
getContentType(java.lang.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. |
abstract java.util.List |
getErrors()
Returns a list of error messages that may have occurred while processing the request. |
abstract java.io.File[] |
getFile(java.lang.String fieldName)
Returns a File object for the filename specified or null if no files
are associated with the given field name. |
abstract java.lang.String[] |
getFileNames(java.lang.String fieldName)
Returns a String[] of file names for files associated with the specified input field name |
abstract java.util.Enumeration<java.lang.String> |
getFileParameterNames()
Returns an enumeration of the parameter names for uploaded files |
abstract java.lang.String[] |
getFilesystemName(java.lang.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. |
abstract java.lang.String |
getParameter(java.lang.String name)
Returns the specified request parameter. |
abstract java.util.Enumeration<java.lang.String> |
getParameterNames()
Returns an enumeration of String parameter names. |
abstract java.lang.String[] |
getParameterValues(java.lang.String name)
Returns a list of all parameter values associated with a parameter name. |
static boolean |
isMultiPart(javax.servlet.http.HttpServletRequest request)
Returns true if the request is multipart form data, false otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
public MultiPartRequest()
Method Detail |
---|
public static boolean isMultiPart(javax.servlet.http.HttpServletRequest request)
request
- the http servlet request.
public abstract java.util.Enumeration<java.lang.String> getFileParameterNames()
public abstract java.lang.String[] getContentType(java.lang.String fieldName)
fieldName
- input field name
public abstract java.io.File[] getFile(java.lang.String fieldName)
File
object for the filename specified or null if no files
are associated with the given field name.
fieldName
- input field name
public abstract java.lang.String[] getFileNames(java.lang.String fieldName)
fieldName
- input field name
public abstract java.lang.String[] getFilesystemName(java.lang.String fieldName)
fieldName
- input field name
public abstract java.lang.String getParameter(java.lang.String name)
name
- the name of the parameter to get
public abstract java.util.Enumeration<java.lang.String> getParameterNames()
public abstract java.lang.String[] getParameterValues(java.lang.String name)
name
- the name of the parameter.
public abstract java.util.List getErrors()
MultiPartRequestWrapper
's errors field.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |