Oracle® interMedia Java Classes Reference 10g Release 1 (10.1) Part Number B10830-01 |
|
|
View PDF |
This section presents reference information on the methods of the oracle.ord.im.OrdMultipartWrapper class.
The OrdMultipartWrapper class wraps the HttpServletRequest object and provides access to the contents in the HTTP request that is encoded using multipart/form-data encoding. This class overrides some of the methods in the HttpServletRequestWrapper class to provide access to the text-based form field parameters. This class also defines new methods to provide access to the uploaded files.
Format
public OrdHttpUploadFile getFileParameter(java.lang.String parameterName)
Description
Gets information about an uploaded file identified by the file's parameter name as an OrdHttpUploadFile object. Input fields of type FILE in an HTML form produce a parameter of type OrdUploadFile, whether or not valid file names are entered into input fields of this type.
Parameters
The name of the uploaded file parameter, as a String.
Return Value
This method returns the uploaded file parameter, as an OrdHttpUploadFile object, or null if the parameter does not exist.
Exceptions
java.lang.IllegalStateException
This exception is thrown if the ServletRequest object has not been specified, the multipart form data has not been parsed, or the upload request has been released.
Examples
None.
Format
public java.util.Enumeration getFileParameterNames( )
Description
Gets an Enumeration of the names of all the input fields of type FILE in an HTML form. Input fields of type FILE in an HTML form produce a parameter of type OrdUploadFile, whether or not valid file names are entered into input fields of this type. This method returns an empty Enumeration if there are no input fields of type FILE.
Parameters
None.
Return Value
This method returns a list of uploaded file parameter names, as an Enumeration of Strings.
Exceptions
java.lang.IllegalStateException
This exception is thrown if the ServletRequest object has not been specified, the multipart form data has not been parsed, or the upload request has been released.
Examples
None.
Format
public OrdHttpUploadFile[ ] getFileParameterValues(java.lang.String parameterName)
Description
Gets an array of OrdHttpUploadFile objects that represents all the files uploaded using the specified parameter name. Input fields of type FILE in an HTML form produce a parameter of type OrdUploadFile, whether or not valid file names are entered into input fields of this type.
Parameters
The name of the uploaded file parameter, as a String.
Return Value
This method returns uploaded file parameters, as an array of OrdHttpUploadFile objects, or null if the parameter does not exist.
Exceptions
java.lang.IllegalStateException
This exception is thrown if the ServletRequest object has not been specified, the multipart form data has not been parsed, or the upload request has been released.
Examples
None.
Format
public java.lang.String getParameter(java.lang.String name)
Description
Overrides the getParameter( ) method in the HttpServletRequestWrapper class (class javax.servlet.ServletRequestWrapper).
Parameters
The name of the parameter, as a String.
Return Value
None.
Exceptions
None.
Examples
None.
Format
public java.util.Map getParameterMap( )
Description
Overrides the getParameterMap( ) method in the HttpServletRequestWrapper class (class javax.servlet.ServletRequestWrapper).
Parameters
None.
Return Value
None.
Exceptions
None.
Examples
None.
Format
public java.lang.String[ ] getParameterValues(java.lang.String name)
Description
Overrides the getParameterValues( ) method in the HttpServletRequestWrapper class (class javax.servlet.ServletRequestWrapper).
Parameters
The name of the parameter, as a String.
Return Value
None.
Exceptions
None.
Examples
None.
Format
public void release( )
Description
Releases the resources owned by an OrdMultipartWrapper object.
Parameters
None.
Return Value
None.
Exceptions
None.
Examples
None.