org.dspace.app.webui.util
Class FileUploadRequest
java.lang.Object
javax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
org.dspace.app.webui.util.FileUploadRequest
- All Implemented Interfaces:
- javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest
public class FileUploadRequest
- extends javax.servlet.http.HttpServletRequestWrapper
Based on the com.oreilly.servlet.MultipartWrapper object, this is an HTTP
request wrapper for multi-part (MIME) POSTs. It uses DSpace configuration
properties to determine the temporary directory to use and the maximum
allowable upload size.
- Version:
- $Revision: 5845 $
- Author:
- Robert Tansley
| Fields inherited from interface javax.servlet.http.HttpServletRequest |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
|
Constructor Summary |
FileUploadRequest(javax.servlet.http.HttpServletRequest req)
Parse a multipart request and extracts the files |
| 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, getInputStream, getLocale, getLocales, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, 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.ServletRequest |
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding |
FileUploadRequest
public FileUploadRequest(javax.servlet.http.HttpServletRequest req)
throws java.io.IOException
- Parse a multipart request and extracts the files
- Parameters:
req - the original request
- Throws:
java.io.IOException
getParameterNames
public java.util.Enumeration getParameterNames()
- Specified by:
getParameterNames in interface javax.servlet.ServletRequest- Overrides:
getParameterNames in class javax.servlet.ServletRequestWrapper
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
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
getParameterMap
public java.util.Map getParameterMap()
- Specified by:
getParameterMap in interface javax.servlet.ServletRequest- Overrides:
getParameterMap in class javax.servlet.ServletRequestWrapper
getFilesystemName
public java.lang.String getFilesystemName(java.lang.String name)
getContentType
public java.lang.String getContentType(java.lang.String name)
getFile
public java.io.File getFile(java.lang.String name)
getFileParameterNames
public java.util.Enumeration<java.lang.String> getFileParameterNames()
getFileNames
public java.util.Enumeration<java.lang.String> getFileNames()
getOriginalRequest
public javax.servlet.http.HttpServletRequest getOriginalRequest()
- Get back the original HTTP request object
- Returns:
- the original HTTP request
Copyright © 2010 DuraSpace. All Rights Reserved.