com.liferay.portal.upload
Class UploadServletRequestImpl
java.lang.Object
javax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
com.liferay.portal.upload.UploadServletRequestImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.upload.UploadServletRequest, javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest
public class UploadServletRequestImpl
- extends javax.servlet.http.HttpServletRequestWrapper
- implements com.liferay.portal.kernel.upload.UploadServletRequest
- Author:
- Brian Wing Shun Chan, Zongliang Li, Harry Mark, Raymond Augé
| Fields inherited from interface javax.servlet.http.HttpServletRequest |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, 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, getContentType, 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.http.HttpServletRequest |
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, 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, getContentType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding |
UploadServletRequestImpl
public UploadServletRequestImpl(javax.servlet.http.HttpServletRequest request)
getTempDir
public static java.io.File getTempDir()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
setTempDir
public static void setTempDir(java.io.File tempDir)
cleanUp
public void cleanUp()
- Specified by:
cleanUp in interface com.liferay.portal.kernel.upload.UploadServletRequest
getContentType
public java.lang.String getContentType(java.lang.String name)
- Specified by:
getContentType in interface com.liferay.portal.kernel.upload.UploadServletRequest
getFile
public java.io.File getFile(java.lang.String name)
- Specified by:
getFile in interface com.liferay.portal.kernel.upload.UploadServletRequest
getFile
public java.io.File getFile(java.lang.String name,
boolean forceCreate)
- Specified by:
getFile in interface com.liferay.portal.kernel.upload.UploadServletRequest
getFileAsStream
public java.io.InputStream getFileAsStream(java.lang.String name)
throws java.io.IOException
- Specified by:
getFileAsStream in interface com.liferay.portal.kernel.upload.UploadServletRequest
- Throws:
java.io.IOException
getFileAsStream
public java.io.InputStream getFileAsStream(java.lang.String name,
boolean deleteOnClose)
throws java.io.IOException
- Specified by:
getFileAsStream in interface com.liferay.portal.kernel.upload.UploadServletRequest
- Throws:
java.io.IOException
getFileName
public java.lang.String getFileName(java.lang.String name)
- Specified by:
getFileName in interface com.liferay.portal.kernel.upload.UploadServletRequest
getFileNames
public java.lang.String[] getFileNames(java.lang.String name)
- Specified by:
getFileNames in interface com.liferay.portal.kernel.upload.UploadServletRequest
getFiles
public java.io.File[] getFiles(java.lang.String name)
- Specified by:
getFiles in interface com.liferay.portal.kernel.upload.UploadServletRequest
getFilesAsStream
public java.io.InputStream[] getFilesAsStream(java.lang.String name)
throws java.io.IOException
- Specified by:
getFilesAsStream in interface com.liferay.portal.kernel.upload.UploadServletRequest
- Throws:
java.io.IOException
getFilesAsStream
public java.io.InputStream[] getFilesAsStream(java.lang.String name,
boolean deleteOnClose)
throws java.io.IOException
- Specified by:
getFilesAsStream in interface com.liferay.portal.kernel.upload.UploadServletRequest
- Throws:
java.io.IOException
getFullFileName
public java.lang.String getFullFileName(java.lang.String name)
- Specified by:
getFullFileName in interface com.liferay.portal.kernel.upload.UploadServletRequest
getInputStream
public javax.servlet.ServletInputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream in interface javax.servlet.ServletRequest- Overrides:
getInputStream in class javax.servlet.ServletRequestWrapper
- Throws:
java.io.IOException
getMultipartParameterMap
public java.util.Map<java.lang.String,LiferayFileItem[]> getMultipartParameterMap()
getParameter
public java.lang.String getParameter(java.lang.String name)
- Specified by:
getParameter in interface javax.servlet.ServletRequest- Overrides:
getParameter in class javax.servlet.ServletRequestWrapper
getParameterMap
public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
- Specified by:
getParameterMap in interface javax.servlet.ServletRequest- Overrides:
getParameterMap in class javax.servlet.ServletRequestWrapper
getParameterNames
public java.util.Enumeration<java.lang.String> getParameterNames()
- Specified by:
getParameterNames in interface javax.servlet.ServletRequest- Overrides:
getParameterNames in class javax.servlet.ServletRequestWrapper
getParameterValues
public java.lang.String[] getParameterValues(java.lang.String name)
- Specified by:
getParameterValues in interface javax.servlet.ServletRequest- Overrides:
getParameterValues in class javax.servlet.ServletRequestWrapper
getSize
public java.lang.Long getSize(java.lang.String name)
- Specified by:
getSize in interface com.liferay.portal.kernel.upload.UploadServletRequest
isFormField
public java.lang.Boolean isFormField(java.lang.String name)
- Specified by:
isFormField in interface com.liferay.portal.kernel.upload.UploadServletRequest
getInputStream
protected java.io.InputStream getInputStream(LiferayFileItem liferayFileItem,
boolean deleteOnClose)
throws java.io.IOException
- Throws:
java.io.IOException