|
Oracle interMedia Java Classes for Servlets and JSP API Reference 10g Release 2 (10.2) Part No. B14300-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
javax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
oracle.ord.im.OrdMultipartWrapper
The OrdMultipartWrapper class wraps the HttpServletRequest object and provides access to the contents in the HTTP request that are 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.
In order to run interMedia methods for servlets and JSP, you will need to import classes from the oracle.ord.im package into your Java file.
You may also need to import classes from the following Java packages:
java.sql. java.io. javax.servlet. javax.servlet.http. oracle.jdbc. oracle.sql.
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) Creates an OrdMultipartWrapper object that wraps the HttpServletRequest object with multipart/form-data content. |
Method Summary | |
OrdHttpUploadFile |
getFileParameter(java.lang.String parameterName) Gets information about an uploaded file identified by the file's 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) Gets an array of OrdHttpUploadFile objects that represents all the files uploaded using the specified parameter name. |
java.lang.String |
getParameter(java.lang.String name) Returns the value of the first query string parameter or text-based form field parameter with the specified name, or null if the parameter does not exist. |
java.util.Map |
getParameterMap() Returns a java.util.Map of the query string parameters and text-based form field data parameters. |
java.util.Enumeration |
getParameterNames() Returns an Enumeration of all the query string parameter names and all the text-based form field parameter names in the request, or an empty Enumeration if there are no query string parameters and no text-based form field parameters. |
java.lang.String[] |
getParameterValues(java.lang.String name) Returns an array of String objects containing the values of all the query string parameters and text-based form field data parameters with the specified parameter name, or null if the parameter does not exist. |
void |
release() Releases the resources owned by an OrdMultipartWrapper object. |
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 |
public OrdMultipartWrapper(javax.servlet.http.HttpServletRequest req, int maxMemory, java.lang.String tempDir) throws java.io.IOException
req
- an object of type HttpServletRequest
.maxMemory
- an int
that specifies the maximum amount of memory to use by all uploaded files in a request before storing the uploaded file contents in the temporary directory.tempDir
- a String
that specifies the temporary directory.Method Detail |
public java.util.Enumeration getParameterNames()
public java.lang.String getParameter(java.lang.String name)
null
if the parameter does not exist.name
- the name of the parameter, as a String
.String
, or null
if the parameter does not exist.public java.lang.String[] getParameterValues(java.lang.String name)
null
if the parameter does not exist.name
- the name of the parameter, as a String
.String
, or null
if the parameter does not exist.public java.util.Map getParameterMap()
java.util.Map
containing parameter names as keys and parameter values as map values.public OrdHttpUploadFile getFileParameter(java.lang.String parameterName)
file
in an HTML form will produce a parameter of type OrdHttpUploadFile
, whether or not valid file names are entered into input fields of this type.parameterName
- the name of the uploaded file parameter, as a String
.null
if the parameter does not exist.java.lang.IllegalStateException
- if the multipart form data has not been parsed, or if the upload request has been released.public OrdHttpUploadFile[] getFileParameterValues(java.lang.String parameterName)
file
in an HTML form produce a parameter of type OrdHttpUploadFile
, whether or not valid file names are entered into input fields of this type.parameterName
- the name of the uploaded file parameter, as a String
.null
if the parameter does not exist.java.lang.IllegalStateException
- if the multipart form data has not been parsed, or if the upload request has been released.public java.util.Enumeration getFileParameterNames()
file
in an HTML form. Input fields of type file
in an HTML form produce a parameter of type OrdHttpUploadFile
, 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
.java.lang.IllegalStateException
- if the multipart form data has not been parsed, or if the upload request has been released.public void release()
|
Oracle interMedia Java Classes for Servlets and JSP API Reference 10g Release 2 (10.2) Part No. B14300-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |