org.apache.myfaces.webapp.filter
Class PortletMultipartRequestWrapper

java.lang.Object
  extended by org.apache.myfaces.webapp.filter.portlet.PortletRequestWrapper
      extended by org.apache.myfaces.webapp.filter.portlet.ActionRequestWrapper
          extended by org.apache.myfaces.webapp.filter.PortletMultipartRequestWrapper
All Implemented Interfaces:
javax.portlet.ActionRequest, javax.portlet.PortletRequest

public class PortletMultipartRequestWrapper
extends ActionRequestWrapper

Since:
1.1.8
Version:
$Revision: 782515 $ $Date: 2009-06-07 22:28:42 -0500 (Sun, 07 Jun 2009) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Field Summary
static String UPLOADED_FILES_ATTRIBUTE
           
static String WWW_FORM_URLENCODED_TYPE
           
 
Fields inherited from interface javax.portlet.PortletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO
 
Constructor Summary
PortletMultipartRequestWrapper(Object request, int maxFileSize, int thresholdSize, String repositoryPath)
           
PortletMultipartRequestWrapper(Object request, int maxFileSize, int thresholdSize, String repositoryPath, int maxRequestSize, boolean cacheFileSizeErrors)
           
 
Method Summary
 Object getAttribute(String string)
           
 String getContentType()
           
 org.apache.commons.fileupload.FileItem getFileItem(String fieldName)
           
 Map getFileItems()
          Not used internally by MyFaces, but provides a way to handle the uploaded files out of MyFaces.
 String getParameter(String name)
           
 Map getParameterMap()
           
 Enumeration getParameterNames()
           
 String[] getParameterValues(String name)
           
 
Methods inherited from class org.apache.myfaces.webapp.filter.portlet.ActionRequestWrapper
getCharacterEncoding, getContentLength, getPortletInputStream, getReader, setCharacterEncoding
 
Methods inherited from class org.apache.myfaces.webapp.filter.portlet.PortletRequestWrapper
getAttributeNames, getAuthType, getContextPath, getLocale, getLocales, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getProperties, getProperty, getPropertyNames, getRemoteUser, getRequest, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.portlet.PortletRequest
getAttributeNames, getAuthType, getContextPath, getLocale, getLocales, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getProperties, getProperty, getPropertyNames, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
 

Field Detail

UPLOADED_FILES_ATTRIBUTE

public static final String UPLOADED_FILES_ATTRIBUTE
See Also:
Constant Field Values

WWW_FORM_URLENCODED_TYPE

public static final String WWW_FORM_URLENCODED_TYPE
See Also:
Constant Field Values
Constructor Detail

PortletMultipartRequestWrapper

public PortletMultipartRequestWrapper(Object request,
                                      int maxFileSize,
                                      int thresholdSize,
                                      String repositoryPath)

PortletMultipartRequestWrapper

public PortletMultipartRequestWrapper(Object request,
                                      int maxFileSize,
                                      int thresholdSize,
                                      String repositoryPath,
                                      int maxRequestSize,
                                      boolean cacheFileSizeErrors)
Method Detail

getParameterNames

public Enumeration getParameterNames()
Specified by:
getParameterNames in interface javax.portlet.PortletRequest
Overrides:
getParameterNames in class PortletRequestWrapper

getParameter

public String getParameter(String name)
Specified by:
getParameter in interface javax.portlet.PortletRequest
Overrides:
getParameter in class PortletRequestWrapper

getParameterValues

public String[] getParameterValues(String name)
Specified by:
getParameterValues in interface javax.portlet.PortletRequest
Overrides:
getParameterValues in class PortletRequestWrapper

getParameterMap

public Map getParameterMap()
Specified by:
getParameterMap in interface javax.portlet.PortletRequest
Overrides:
getParameterMap in class PortletRequestWrapper

getFileItem

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

getFileItems

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


getAttribute

public Object getAttribute(String string)
Specified by:
getAttribute in interface javax.portlet.PortletRequest
Overrides:
getAttribute in class PortletRequestWrapper

getContentType

public String getContentType()
Specified by:
getContentType in interface javax.portlet.ActionRequest
Overrides:
getContentType in class ActionRequestWrapper


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.