org.apache.myfaces.component.html.util
Class MultipartRequestWrapper

java.lang.Object
  |
  +--javax.servlet.ServletRequestWrapper
        |
        +--javax.servlet.http.HttpServletRequestWrapper
              |
              +--org.apache.myfaces.component.html.util.MultipartRequestWrapper
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class MultipartRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper

Version:
$Revision: 1.2 $ $Date: 2004/12/11 21:41:33 $ $Log: MultipartRequestWrapper.java,v $ Revision 1.2 2004/12/11 21:41:33 svieujot Add method to get the FileItems. Revision 1.1 2004/12/01 16:32:03 svieujot Convert the Multipart filter in an ExtensionsFilter that provides an additional facility to include resources in a page. Tested only with javascript resources right now, but should work fine with images too. Some work to do to include css resources. The popup component has been converted to use this new Filter. Revision 1.8 2004/11/16 16:25:52 mmarinschek new popup - component; not yet finished Revision 1.7 2004/10/13 11:50:57 matze renamed packages to org.apache Revision 1.6 2004/09/09 13:43:59 manolito query string parameters where missing in the parameter map Revision 1.5 2004/08/16 18:06:47 svieujot Another bug fix for bug #1001511. Patch submitted by Takashi Okamoto. Revision 1.4 2004/08/02 04:26:06 svieujot Fix for bug #1001511 : setHeaderEncoding
Author:
Sylvain Vieujot (latest modification by $Author: svieujot $)

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
MultipartRequestWrapper(javax.servlet.http.HttpServletRequest request, int maxSize, int thresholdSize, java.lang.String repositoryPath)
           
 
Method Summary
 org.apache.commons.fileupload.FileItem getFileItem(java.lang.String fieldName)
           
 java.util.Map getFileItems()
          Not used internaly by MyFaces, but provides a way to handle the uploaded files out of MyFaces.
 java.lang.String getParameter(java.lang.String name)
           
 java.util.Map getParameterMap()
           
 java.util.Enumeration getParameterNames()
           
 java.lang.String[] getParameterValues(java.lang.String name)
           
 
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
clone, equals, finalize, 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

MultipartRequestWrapper

public MultipartRequestWrapper(javax.servlet.http.HttpServletRequest request,
                               int maxSize,
                               int thresholdSize,
                               java.lang.String repositoryPath)
Method Detail

getParameterNames

public java.util.Enumeration getParameterNames()
Specified by:
getParameterNames in interface javax.servlet.ServletRequest
Overrides:
getParameterNames in class javax.servlet.ServletRequestWrapper

getParameter

public java.lang.String getParameter(java.lang.String name)
Specified by:
getParameter in interface javax.servlet.ServletRequest
Overrides:
getParameter in class javax.servlet.ServletRequestWrapper

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name)
Specified by:
getParameterValues in interface javax.servlet.ServletRequest
Overrides:
getParameterValues in class javax.servlet.ServletRequestWrapper

getParameterMap

public java.util.Map getParameterMap()
Specified by:
getParameterMap in interface javax.servlet.ServletRequest
Overrides:
getParameterMap in class javax.servlet.ServletRequestWrapper

getFileItem

public org.apache.commons.fileupload.FileItem getFileItem(java.lang.String fieldName)

getFileItems

public java.util.Map getFileItems()
Not used internaly by MyFaces, but provides a way to handle the uploaded files out of MyFaces.