org.apache.myfaces.webapp.filter
Class MultipartRequestWrapper

java.lang.Object
  extended byjavax.servlet.ServletRequestWrapper
      extended byjavax.servlet.http.HttpServletRequestWrapper
          extended byorg.apache.myfaces.webapp.filter.MultipartRequestWrapper
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class MultipartRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper

Version:
$Revision: 472792 $ $Date: 2006-11-09 07:34:47 +0100 (Do, 09 Nov 2006) $
Author:
Sylvain Vieujot (latest modification by $Author: grantsmith $)

Field Summary
static java.lang.String UPLOADED_FILES_ATTRIBUTE
           
static java.lang.String WWW_FORM_URLENCODED_TYPE
           
 
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
 java.lang.Object getAttribute(java.lang.String string)
           
 java.lang.String getContentType()
           
 org.apache.commons.fileupload.FileItem getFileItem(java.lang.String fieldName)
           
 java.util.Map getFileItems()
          Not used internally 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
getAttributeNames, getCharacterEncoding, getContentLength, 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
getAttributeNames, getCharacterEncoding, getContentLength, getInputStream, getLocale, getLocales, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Field Detail

UPLOADED_FILES_ATTRIBUTE

public static final java.lang.String UPLOADED_FILES_ATTRIBUTE
See Also:
Constant Field Values

WWW_FORM_URLENCODED_TYPE

public static final java.lang.String WWW_FORM_URLENCODED_TYPE
See Also:
Constant Field Values
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()

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()

getFileItem

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

getFileItems

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


getAttribute

public java.lang.Object getAttribute(java.lang.String string)

getContentType

public java.lang.String getContentType()


Copyright © 2007 Apache Software Foundation. All Rights Reserved.