org.apache.myfaces.trinidadinternal.config.upload
Class UploadResourceRequest

java.lang.Object
  extended by javax.portlet.filter.PortletRequestWrapper
      extended by javax.portlet.filter.ResourceRequestWrapper
          extended by org.apache.myfaces.trinidadinternal.config.upload.UploadResourceRequest
All Implemented Interfaces:
javax.portlet.ClientDataRequest, javax.portlet.PortletRequest, javax.portlet.ResourceRequest

public class UploadResourceRequest
extends javax.portlet.filter.ResourceRequestWrapper


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest
javax.portlet.PortletRequest.P3PUserInfos
 
Field Summary
 
Fields inherited from interface javax.portlet.ResourceRequest
ETAG
 
Fields inherited from interface javax.portlet.PortletRequest
ACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO
 
Constructor Summary
UploadResourceRequest(javax.faces.context.ExternalContext ec, java.util.Map<java.lang.String,java.lang.String[]> params)
           
 
Method Summary
 java.lang.String getCharacterEncoding()
           
 java.lang.String getContentType()
          Hide the content type so that no one tries to re-download the uploaded files.
 java.lang.String getParameter(java.lang.String param)
           
 java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
           
 java.util.Enumeration<java.lang.String> getParameterNames()
           
 java.lang.String[] getParameterValues(java.lang.String param)
           
 void setCharacterEncoding(java.lang.String encoding)
          Trap calls to setCharacterEncoding() to decode parameters correctly
 
Methods inherited from class javax.portlet.filter.ResourceRequestWrapper
getCacheability, getContentLength, getETag, getMethod, getPortletInputStream, getPrivateRenderParameterMap, getReader, getRequest, getResourceID, setRequest
 
Methods inherited from class javax.portlet.filter.PortletRequestWrapper
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, 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.ResourceRequest
getResponseContentType, getResponseContentTypes
 
Methods inherited from interface javax.portlet.PortletRequest
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
 

Constructor Detail

UploadResourceRequest

public UploadResourceRequest(javax.faces.context.ExternalContext ec,
                             java.util.Map<java.lang.String,java.lang.String[]> params)
Method Detail

getContentType

public java.lang.String getContentType()
Hide the content type so that no one tries to re-download the uploaded files.

Specified by:
getContentType in interface javax.portlet.ClientDataRequest
Overrides:
getContentType in class javax.portlet.filter.ResourceRequestWrapper

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Specified by:
getCharacterEncoding in interface javax.portlet.ClientDataRequest
Overrides:
getCharacterEncoding in class javax.portlet.filter.ResourceRequestWrapper

setCharacterEncoding

public void setCharacterEncoding(java.lang.String encoding)
                          throws java.io.UnsupportedEncodingException
Trap calls to setCharacterEncoding() to decode parameters correctly

Specified by:
setCharacterEncoding in interface javax.portlet.ClientDataRequest
Overrides:
setCharacterEncoding in class javax.portlet.filter.ResourceRequestWrapper
Throws:
java.io.UnsupportedEncodingException

getParameter

public java.lang.String getParameter(java.lang.String param)
Specified by:
getParameter in interface javax.portlet.PortletRequest
Overrides:
getParameter in class javax.portlet.filter.PortletRequestWrapper

getParameterMap

public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
Specified by:
getParameterMap in interface javax.portlet.PortletRequest
Overrides:
getParameterMap in class javax.portlet.filter.PortletRequestWrapper

getParameterNames

public java.util.Enumeration<java.lang.String> getParameterNames()
Specified by:
getParameterNames in interface javax.portlet.PortletRequest
Overrides:
getParameterNames in class javax.portlet.filter.PortletRequestWrapper

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String param)
Specified by:
getParameterValues in interface javax.portlet.PortletRequest
Overrides:
getParameterValues in class javax.portlet.filter.PortletRequestWrapper


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.