|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.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 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. |
abstract List |
getErrors()
Returns a list of error messages that may have occurred while processing the request. |
abstract File[] |
getFile(String fieldName)
Returns a File object for the filename specified or null if no files
are associated with the given field name. |
abstract String[] |
getFileNames(String fieldName)
Returns a String[] of file names for files associated with the specified input field name |
abstract Enumeration |
getFileParameterNames()
Returns an enumeration of the parameter names for uploaded files |
abstract 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. |
abstract String |
getParameter(String name)
Returns the specified request parameter. |
abstract Enumeration |
getParameterNames()
Returns an enumeration of String parameter names. |
abstract String[] |
getParameterValues(String name)
Returns a list of all parameter values associated with a parameter name. |
static boolean |
isMultiPart(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(HttpServletRequest request)
request
- the http servlet request.
public abstract Enumeration getFileParameterNames()
public abstract String[] getContentType(String fieldName)
fieldName
- input field name
public abstract 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
public abstract String[] getFileNames(String fieldName)
fieldName
- input field name
public abstract String[] getFilesystemName(String fieldName)
fieldName
- input field name
public abstract String getParameter(String name)
name
- the name of the parameter to get
public abstract Enumeration getParameterNames()
public abstract String[] getParameterValues(String name)
name
- the name of the parameter.
public abstract List getErrors()
MultiPartRequestWrapper
's errors field.
|
WebWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |