Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.ui.web.multipart
Class MultipartRequest

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by org.jboss.seam.web.MultipartRequestImpl
              extended by org.nuxeo.ecm.platform.ui.web.multipart.MultipartRequest
All Implemented Interfaces:
HttpServletRequest, ServletRequest, org.jboss.seam.web.MultipartRequest

public class MultipartRequest
extends org.jboss.seam.web.MultipartRequestImpl

Request wrapper for supporting multipart requests, used for file uploading.

Author:
Shane Bryzak

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
MultipartRequest(HttpServletRequest request, boolean createTempFiles, int maxRequestSize)
           
 
Method Summary
 void cancel()
           
 String getContentType()
           
 Object getFile(String name)
           
 byte[] getFileBytes(String name)
           
 String getFileContentType(String name)
           
 InputStream getFileInputStream(String name)
           
 String getFileName(String name)
           
 int getFileSize(String name)
           
 String getHeader(String name)
           
 String getParameter(String name)
           
 Map getParameterMap()
           
 Enumeration getParameterNames()
           
 String[] getParameterValues(String name)
           
 Integer getSize()
           
 boolean isDone()
           
 boolean isStopped()
           
 void parseRequest()
           
 void stop()
           
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, 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, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.http.HttpServletRequest
getAuthType, getContextPath, getCookies, getDateHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

MultipartRequest

public MultipartRequest(HttpServletRequest request,
                        boolean createTempFiles,
                        int maxRequestSize)
Method Detail

cancel

public void cancel()

parseRequest

public void parseRequest()

getSize

public Integer getSize()

getParameterNames

public Enumeration getParameterNames()
Specified by:
getParameterNames in interface ServletRequest
Overrides:
getParameterNames in class org.jboss.seam.web.MultipartRequestImpl

getFileBytes

public byte[] getFileBytes(String name)
Specified by:
getFileBytes in interface org.jboss.seam.web.MultipartRequest
Overrides:
getFileBytes in class org.jboss.seam.web.MultipartRequestImpl

getFileInputStream

public InputStream getFileInputStream(String name)
Specified by:
getFileInputStream in interface org.jboss.seam.web.MultipartRequest
Overrides:
getFileInputStream in class org.jboss.seam.web.MultipartRequestImpl

getFileContentType

public String getFileContentType(String name)
Specified by:
getFileContentType in interface org.jboss.seam.web.MultipartRequest
Overrides:
getFileContentType in class org.jboss.seam.web.MultipartRequestImpl

getFile

public Object getFile(String name)

getFileName

public String getFileName(String name)
Specified by:
getFileName in interface org.jboss.seam.web.MultipartRequest
Overrides:
getFileName in class org.jboss.seam.web.MultipartRequestImpl

getFileSize

public int getFileSize(String name)
Specified by:
getFileSize in interface org.jboss.seam.web.MultipartRequest
Overrides:
getFileSize in class org.jboss.seam.web.MultipartRequestImpl

getParameter

public String getParameter(String name)
Specified by:
getParameter in interface ServletRequest
Overrides:
getParameter in class org.jboss.seam.web.MultipartRequestImpl

getParameterValues

public String[] getParameterValues(String name)
Specified by:
getParameterValues in interface ServletRequest
Overrides:
getParameterValues in class org.jboss.seam.web.MultipartRequestImpl

getParameterMap

public Map getParameterMap()
Specified by:
getParameterMap in interface ServletRequest
Overrides:
getParameterMap in class org.jboss.seam.web.MultipartRequestImpl

getHeader

public String getHeader(String name)
Specified by:
getHeader in interface HttpServletRequest
Overrides:
getHeader in class HttpServletRequestWrapper

stop

public void stop()

isStopped

public boolean isStopped()

isDone

public boolean isDone()

getContentType

public String getContentType()
Specified by:
getContentType in interface ServletRequest
Overrides:
getContentType in class ServletRequestWrapper

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.