OrdMultipartWrapper Class

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.

getFileParameter(String)

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

parameterName

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.

getFileParameterNames( )

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.

getFileParameterValues(String)

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

parameterName

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.