Oracle9i Business Components for Java InterMedia API Reference
Oracle9i JDeveloper (9.0.5)
B10394-01

oracle.ord.im
Class OrdMultipartWrapper

java.lang.Object
  extended byjavax.servlet.ServletRequestWrapper
      extended byjavax.servlet.http.HttpServletRequestWrapper
          extended byoracle.ord.im.OrdMultipartWrapper
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class OrdMultipartWrapper
extends javax.servlet.http.HttpServletRequestWrapper


Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
OrdMultipartWrapper(javax.servlet.http.HttpServletRequest req, int maxMemory, java.lang.String tempDir)
           
 
Method Summary
 OrdHttpUploadFile getFileParameter(java.lang.String parameterName)
          Returns information about an uploaded file identified by parameter name as an OrdHttpUploadFile object.
 java.util.Enumeration getFileParameterNames()
          Returns an Enumeration of the names of all the input fields of type FILE in an HTML form.
 OrdHttpUploadFile[] getFileParameterValues(java.lang.String parameterName)
          Returns an array of OrdHttpUploadFile objects that represent all the files uploaded using the specified parameter name.
 java.lang.String getParameter(java.lang.String name)
           
 java.util.Map getParameterMap()
           
 java.util.Enumeration getParameterNames()
           
 java.lang.String[] getParameterValues(java.lang.String name)
           
 void release()
           
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

OrdMultipartWrapper

public OrdMultipartWrapper(javax.servlet.http.HttpServletRequest req,
                           int maxMemory,
                           java.lang.String tempDir)
                    throws java.io.IOException
Method Detail

getParameterNames

public java.util.Enumeration getParameterNames()

getParameter

public java.lang.String getParameter(java.lang.String name)

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name)

getParameterMap

public java.util.Map getParameterMap()

getFileParameter

public OrdHttpUploadFile getFileParameter(java.lang.String parameterName)
Returns information about an uploaded file identified by parameter name as an OrdHttpUploadFile object. Note that every input field of type FILE in an HTML form will produce a parameter of type OrdUploadFile, whether or not a user enters a valid file name into such a field.

Parameters:
parameterName - the name of the uploaded file parameter as a String.
Returns:
uploaded file parameter as an OrdHttpUploadFile object or null if the parameter does not exist.
Throws:
java.lang.IllegalStateException - if the ServletRequest object has not been specified, if the multipart form data has not been parsed, or if the upload request has been released.

getFileParameterValues

public OrdHttpUploadFile[] getFileParameterValues(java.lang.String parameterName)
Returns an array of OrdHttpUploadFile objects that represent all the files uploaded using the specified parameter name. Note that every input field of type FILE in an HTML form will produce a parameter of type OrdUploadFile, whether or not a user enters a valid file name into such a field.

Parameters:
parameterName - the name of the uploaded file parameter as a String.
Returns:
uploaded file parameters as an array of OrdHttpUploadFile objects or null if the parameter does not exist.
Throws:
java.lang.IllegalStateException - if the ServletRequest object has not been specified, if the multipart form data has not been parsed, or if the upload request has been released.

getFileParameterNames

public java.util.Enumeration getFileParameterNames()
Returns an Enumeration of the names of all the input fields of type FILE in an HTML form. Note that every input field of type FILE in an HTML form will produce a parameter of type OrdUploadFile, whether or not a user enters a valid file name into such a field. Returns an empty Enumeration if there are no input fields of type FILE.

Returns:
list of uploaded file parameter names as an Enumeration of Strings.
Throws:
java.lang.IllegalStateException - if the ServletRequest object has not been specified, if the multipart form data has not been parsed, or if the upload request has been released.

release

public void release()

Oracle9i Business Components for Java InterMedia API Reference
Oracle9i JDeveloper (9.0.5)
B10394-01

Copyright © 2001,2003, Oracle. All Rights Reserved.