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.OrdMultipartFilter class.
The OrdMultipartFilter class implements the javax.servlet.Filter interface in servlet 2.3. It filters the form-based, file upload servlet request (with the content type multipart/form-data) and wraps the request object using the OrdMultipartWrapper object that parses the request content. For any servlet container that supports servlet 2.3, this filter combined with the OrdMultipartWrapper object provide transparent access to the parameters and files in the servlet request with multipart/form-data encoding.
Format
public void destroy( )
Description
Implements the javax.servlet.Filter interface destroy( ) method that destroys the filter.
Parameters
None.
Return Value
None.
Exceptions
None.
Examples
None.
Format
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
Description
Implements the javax.servlet.Filter interface doFilter( ) method that handles the servlet request with multipart/form-data encoding. This method filters the servlet request with multipart/form-data content and wraps it with the OrdMultipartWrapper object. The OrdMultipartWrapper object then parses the content and provides access to the text-based form field parameters and uploaded files.
Parameters
The servlet request.
The servlet response.
The filters that must be processed.
Return Value
None.
Exceptions
java.io.IOException
This exception is thrown if an error occurs during the I/O operation.
javax.servlet.ServletException
This exception is thrown if an error occurs in the servlet.
Examples
None.
Format
public void init(javax.servlet.FilterConfig config)
Description
Implements the javax.servlet.Filter interface init( ) method that initializes the filter. The FilterConfig object can be set with initial parameters (for the tempDir and maxMemory attributes), to specify the maximum amount of memory that the contents of uploaded files can consume before the contents are stored in a temporary directory.
Parameters
An object of type javax.servlet.FilterConfig.
Return Value
None.
Exceptions
javax.servlet.ServletException
This exception is thrown if an error occurs in the servlet.
Examples
None.