Liferay 6.1.2-ce-ga3

com.liferay.portal.upload
Class UploadServletRequestImpl

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by com.liferay.portal.upload.UploadServletRequestImpl
All Implemented Interfaces:
UploadRequest, UploadServletRequest, javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class UploadServletRequestImpl
extends javax.servlet.http.HttpServletRequestWrapper
implements UploadServletRequest


Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
UploadServletRequestImpl(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 void cleanUp()
           
 String getContentType(String name)
           
 File getFile(String name)
           
 File getFile(String name, boolean forceCreate)
           
 InputStream getFileAsStream(String name)
           
 InputStream getFileAsStream(String name, boolean deleteOnClose)
           
 String getFileName(String name)
           
 String[] getFileNames(String name)
           
 File[] getFiles(String name)
           
 InputStream[] getFilesAsStream(String name)
           
 InputStream[] getFilesAsStream(String name, boolean deleteOnClose)
           
 String getFullFileName(String name)
           
 javax.servlet.ServletInputStream getInputStream()
           
protected  InputStream getInputStream(FileItem liferayFileItem, boolean deleteOnClose)
           
 Map<String,FileItem[]> getMultipartParameterMap()
           
 String getParameter(String name)
           
 Map<String,String[]> getParameterMap()
           
 Enumeration<String> getParameterNames()
           
 String[] getParameterValues(String name)
           
 Long getSize(String name)
           
static File getTempDir()
           
 Boolean isFormField(String name)
           
static void setTempDir(File tempDir)
           
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.http.HttpServletRequest
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout
 
Methods inherited from interface javax.servlet.ServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
 

Constructor Detail

UploadServletRequestImpl

public UploadServletRequestImpl(javax.servlet.http.HttpServletRequest request)
Method Detail

getTempDir

public static File getTempDir()
                       throws SystemException
Throws:
SystemException

setTempDir

public static void setTempDir(File tempDir)

cleanUp

public void cleanUp()
Specified by:
cleanUp in interface UploadRequest

getContentType

public String getContentType(String name)
Specified by:
getContentType in interface UploadRequest

getFile

public File getFile(String name)
Specified by:
getFile in interface UploadRequest

getFile

public File getFile(String name,
                    boolean forceCreate)
Specified by:
getFile in interface UploadRequest

getFileAsStream

public InputStream getFileAsStream(String name)
                            throws IOException
Specified by:
getFileAsStream in interface UploadRequest
Throws:
IOException

getFileAsStream

public InputStream getFileAsStream(String name,
                                   boolean deleteOnClose)
                            throws IOException
Specified by:
getFileAsStream in interface UploadRequest
Throws:
IOException

getFileName

public String getFileName(String name)
Specified by:
getFileName in interface UploadRequest

getFileNames

public String[] getFileNames(String name)
Specified by:
getFileNames in interface UploadRequest

getFiles

public File[] getFiles(String name)
Specified by:
getFiles in interface UploadRequest

getFilesAsStream

public InputStream[] getFilesAsStream(String name)
                               throws IOException
Specified by:
getFilesAsStream in interface UploadRequest
Throws:
IOException

getFilesAsStream

public InputStream[] getFilesAsStream(String name,
                                      boolean deleteOnClose)
                               throws IOException
Specified by:
getFilesAsStream in interface UploadRequest
Throws:
IOException

getFullFileName

public String getFullFileName(String name)
Specified by:
getFullFileName in interface UploadRequest

getInputStream

public javax.servlet.ServletInputStream getInputStream()
                                                throws IOException
Specified by:
getInputStream in interface javax.servlet.ServletRequest
Overrides:
getInputStream in class javax.servlet.ServletRequestWrapper
Throws:
IOException

getMultipartParameterMap

public Map<String,FileItem[]> getMultipartParameterMap()
Specified by:
getMultipartParameterMap in interface UploadRequest

getParameter

public String getParameter(String name)
Specified by:
getParameter in interface javax.servlet.ServletRequest
Overrides:
getParameter in class javax.servlet.ServletRequestWrapper

getParameterMap

public Map<String,String[]> getParameterMap()
Specified by:
getParameterMap in interface javax.servlet.ServletRequest
Overrides:
getParameterMap in class javax.servlet.ServletRequestWrapper

getParameterNames

public Enumeration<String> getParameterNames()
Specified by:
getParameterNames in interface javax.servlet.ServletRequest
Overrides:
getParameterNames in class javax.servlet.ServletRequestWrapper

getParameterValues

public String[] getParameterValues(String name)
Specified by:
getParameterValues in interface javax.servlet.ServletRequest
Overrides:
getParameterValues in class javax.servlet.ServletRequestWrapper

getSize

public Long getSize(String name)
Specified by:
getSize in interface UploadRequest

isFormField

public Boolean isFormField(String name)
Specified by:
isFormField in interface UploadRequest

getInputStream

protected InputStream getInputStream(FileItem liferayFileItem,
                                     boolean deleteOnClose)
                              throws IOException
Throws:
IOException

Liferay 6.1.2-ce-ga3