Class MultipartActionRequestWrapper

java.lang.Object
com.webmethods.caf.faces.portlet.MultipartActionRequestWrapper
All Implemented Interfaces:
javax.portlet.ActionRequest, javax.portlet.PortletRequest

@Deprecated public class MultipartActionRequestWrapper extends Object implements javax.portlet.ActionRequest
Deprecated.
Class replaced by Jetty 8+ Request.getPart() and getParts() methods.
Adapts a multipart form POST to the ActionRequest interface. Stores uploaded files as FileItems in the MultipartUtils.FILE_ITEMS request attribute.
  • Field Details

    • m_multipartParams

      protected Map<String,String[]> m_multipartParams
      Deprecated.
      Params from multipart body. May be null.
    • m_aggregateParams

      protected Map<String,String[]> m_aggregateParams
      Deprecated.
      Aggregation of params from multipart body plus params from request url. May be null.
    • m_fileItemFactory

      protected org.apache.commons.fileupload.FileItemFactory m_fileItemFactory
      Deprecated.
      Specified FileItem factory.
    • m_maxSize

      protected int m_maxSize
      Deprecated.
      Specified max allowed upload size in bytes (negative signals no max size).
    • m_parent

      protected javax.portlet.ActionRequest m_parent
      Deprecated.
      Super ActionRequest.
  • Constructor Details

    • MultipartActionRequestWrapper

      public MultipartActionRequestWrapper(javax.portlet.ActionRequest parent, int maxSize, org.apache.commons.fileupload.FileItemFactory fileItemFactory)
      Deprecated.
      New multipart request wrapper.
      Parameters:
      parent - Request to wrap.
      maxSize - Max upload file size in bytes.
      fileItemFactory - FileItem factory to use.
  • Method Details

    • getCharacterEncoding

      public String getCharacterEncoding()
      Deprecated.
      Specified by:
      getCharacterEncoding in interface javax.portlet.ActionRequest
    • getContentLength

      public int getContentLength()
      Deprecated.
      Specified by:
      getContentLength in interface javax.portlet.ActionRequest
    • getContentType

      public String getContentType()
      Deprecated.
      Specified by:
      getContentType in interface javax.portlet.ActionRequest
    • getPortletInputStream

      public InputStream getPortletInputStream() throws IOException
      Deprecated.
      Specified by:
      getPortletInputStream in interface javax.portlet.ActionRequest
      Throws:
      IOException
    • getReader

      Deprecated.
      Specified by:
      getReader in interface javax.portlet.ActionRequest
      Throws:
      UnsupportedEncodingException
      IOException
    • setCharacterEncoding

      public void setCharacterEncoding(String encoding) throws UnsupportedEncodingException
      Deprecated.
      Specified by:
      setCharacterEncoding in interface javax.portlet.ActionRequest
      Throws:
      UnsupportedEncodingException
    • getAttribute

      public Object getAttribute(String name)
      Deprecated.
      Specified by:
      getAttribute in interface javax.portlet.PortletRequest
    • getAttributeNames

      public Enumeration<String> getAttributeNames()
      Deprecated.
      Specified by:
      getAttributeNames in interface javax.portlet.PortletRequest
    • getAuthType

      public String getAuthType()
      Deprecated.
      Specified by:
      getAuthType in interface javax.portlet.PortletRequest
    • getContextPath

      public String getContextPath()
      Deprecated.
      Specified by:
      getContextPath in interface javax.portlet.PortletRequest
    • getLocale

      public Locale getLocale()
      Deprecated.
      Specified by:
      getLocale in interface javax.portlet.PortletRequest
    • getLocales

      public Enumeration<Locale> getLocales()
      Deprecated.
      Specified by:
      getLocales in interface javax.portlet.PortletRequest
    • getParameter

      public String getParameter(String name)
      Deprecated.
      Specified by:
      getParameter in interface javax.portlet.PortletRequest
    • getParameterMap

      public Map<String,String[]> getParameterMap()
      Deprecated.
      Specified by:
      getParameterMap in interface javax.portlet.PortletRequest
    • getParameterNames

      public Enumeration<String> getParameterNames()
      Deprecated.
      Specified by:
      getParameterNames in interface javax.portlet.PortletRequest
    • getParameterValues

      public String[] getParameterValues(String name)
      Deprecated.
      Specified by:
      getParameterValues in interface javax.portlet.PortletRequest
    • getPortalContext

      public javax.portlet.PortalContext getPortalContext()
      Deprecated.
      Specified by:
      getPortalContext in interface javax.portlet.PortletRequest
    • getPortletMode

      public javax.portlet.PortletMode getPortletMode()
      Deprecated.
      Specified by:
      getPortletMode in interface javax.portlet.PortletRequest
    • getPortletSession

      public javax.portlet.PortletSession getPortletSession()
      Deprecated.
      Specified by:
      getPortletSession in interface javax.portlet.PortletRequest
    • getPortletSession

      public javax.portlet.PortletSession getPortletSession(boolean create)
      Deprecated.
      Specified by:
      getPortletSession in interface javax.portlet.PortletRequest
    • getPreferences

      public javax.portlet.PortletPreferences getPreferences()
      Deprecated.
      Specified by:
      getPreferences in interface javax.portlet.PortletRequest
    • getProperties

      public Enumeration<?> getProperties(String name)
      Deprecated.
      Specified by:
      getProperties in interface javax.portlet.PortletRequest
    • getProperty

      public String getProperty(String name)
      Deprecated.
      Specified by:
      getProperty in interface javax.portlet.PortletRequest
    • getPropertyNames

      public Enumeration<String> getPropertyNames()
      Deprecated.
      Specified by:
      getPropertyNames in interface javax.portlet.PortletRequest
    • getRemoteUser

      public String getRemoteUser()
      Deprecated.
      Specified by:
      getRemoteUser in interface javax.portlet.PortletRequest
    • getRequestedSessionId

      public String getRequestedSessionId()
      Deprecated.
      Specified by:
      getRequestedSessionId in interface javax.portlet.PortletRequest
    • getResponseContentType

      public String getResponseContentType()
      Deprecated.
      Specified by:
      getResponseContentType in interface javax.portlet.PortletRequest
    • getResponseContentTypes

      public Enumeration<String> getResponseContentTypes()
      Deprecated.
      Specified by:
      getResponseContentTypes in interface javax.portlet.PortletRequest
    • getScheme

      public String getScheme()
      Deprecated.
      Specified by:
      getScheme in interface javax.portlet.PortletRequest
    • getServerName

      public String getServerName()
      Deprecated.
      Specified by:
      getServerName in interface javax.portlet.PortletRequest
    • getServerPort

      public int getServerPort()
      Deprecated.
      Specified by:
      getServerPort in interface javax.portlet.PortletRequest
    • getUserPrincipal

      public Principal getUserPrincipal()
      Deprecated.
      Specified by:
      getUserPrincipal in interface javax.portlet.PortletRequest
    • getWindowState

      public javax.portlet.WindowState getWindowState()
      Deprecated.
      Specified by:
      getWindowState in interface javax.portlet.PortletRequest
    • isPortletModeAllowed

      public boolean isPortletModeAllowed(javax.portlet.PortletMode mode)
      Deprecated.
      Specified by:
      isPortletModeAllowed in interface javax.portlet.PortletRequest
    • isRequestedSessionIdValid

      public boolean isRequestedSessionIdValid()
      Deprecated.
      Specified by:
      isRequestedSessionIdValid in interface javax.portlet.PortletRequest
    • isSecure

      public boolean isSecure()
      Deprecated.
      Specified by:
      isSecure in interface javax.portlet.PortletRequest
    • isUserInRole

      public boolean isUserInRole(String role)
      Deprecated.
      Specified by:
      isUserInRole in interface javax.portlet.PortletRequest
    • isWindowStateAllowed

      public boolean isWindowStateAllowed(javax.portlet.WindowState state)
      Deprecated.
      Specified by:
      isWindowStateAllowed in interface javax.portlet.PortletRequest
    • removeAttribute

      public void removeAttribute(String name)
      Deprecated.
      Specified by:
      removeAttribute in interface javax.portlet.PortletRequest
    • setAttribute

      public void setAttribute(String name, Object value)
      Deprecated.
      Specified by:
      setAttribute in interface javax.portlet.PortletRequest
    • parseRequest

      protected void parseRequest()
      Deprecated.
      Parses request for multipart info.