|
Oracle interMedia Java Classes for Servlets and JSP API Reference 10g Release 1 (10.1) Part No. B12249-01 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | 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 accesses 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 and defines new methods to provide access to the uploaded file(s).
Constructor Summary | |
OrdMultipartWrapper(javax.servlet.http.HttpServletRequest req, int maxMemory, java.lang.String tempDir) Create an OrdMultipartWrapper object that wraps the HttpServletRequest with multipart/form-data content. |
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) Overriden method from in HttpServletRequestWrapper class. |
java.util.Map |
getParameterMap() Overriden method from in HttpServletRequestWrapper class. |
java.util.Enumeration |
getParameterNames() Overriden method from in HttpServletRequestWrapper class. |
java.lang.String[] |
getParameterValues(java.lang.String name) Overriden method from in HttpServletRequestWrapper class. |
void |
release() Release 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 |
Constructor Detail |
public OrdMultipartWrapper(javax.servlet.http.HttpServletRequest req, int maxMemory, java.lang.String tempDir) throws java.io.IOException
req
- an object of HttpServletRequest type.maxMemory
- an int
that sepecifies the maximum amount of memeory 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)
public java.lang.String[] getParameterValues(java.lang.String name)
public java.util.Map getParameterMap()
public OrdHttpUploadFile getFileParameter(java.lang.String parameterName)
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.parameterName
- the name of the uploaded file parameter as a String
.OrdHttpUploadFile
object or null
if the parameter does not exist.public OrdHttpUploadFile[] getFileParameterValues(java.lang.String parameterName)
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.parameterName
- the name of the uploaded file parameter as a String
.OrdHttpUploadFile
objects or null
if the parameter does not exist.public java.util.Enumeration getFileParameterNames()
Enumeration
of String
s.public void release()
|
Oracle interMedia Java Classes for Servlets and JSP API Reference 10g Release 1 (10.1) Part No. B12249-01 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |