public class MultipartHttpServletRequest
extends javax.servlet.http.HttpServletRequestWrapper
Constructor and Description |
---|
MultipartHttpServletRequest(javax.servlet.http.HttpServletRequest request,
Map<String,List<org.apache.commons.fileupload.FileItem>> multipartFiles,
Map<String,String[]> parameters)
Constructor
|
Modifier and Type | Method and Description |
---|---|
org.apache.commons.fileupload.FileItem |
getFile(String strName)
Gets a file.
|
List<org.apache.commons.fileupload.FileItem> |
getFileList(String strName)
Gets a file
|
Map<String,List<org.apache.commons.fileupload.FileItem>> |
getFileListMap()
Gets a map of all files attached to the request
|
Enumeration<String> |
getFileNames()
Gets the list of filenames attached to the request
|
String |
getParameter(String strName)
Gets a parameter value
|
Map |
getParameterMap()
Gets the parameter map
|
Enumeration |
getParameterNames()
Gets parameters names
|
String[] |
getParameterValues(String strName)
Gets parameter values
|
authenticate, changeSessionId, 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, upgrade
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public MultipartHttpServletRequest(javax.servlet.http.HttpServletRequest request, Map<String,List<org.apache.commons.fileupload.FileItem>> multipartFiles, Map<String,String[]> parameters)
request
- The HTTP requestmultipartFiles
- Filesparameters
- Request parameterspublic Enumeration getParameterNames()
getParameterNames
in interface javax.servlet.ServletRequest
getParameterNames
in class javax.servlet.ServletRequestWrapper
public String getParameter(String strName)
getParameter
in interface javax.servlet.ServletRequest
getParameter
in class javax.servlet.ServletRequestWrapper
strName
- The parameter namepublic String[] getParameterValues(String strName)
getParameterValues
in interface javax.servlet.ServletRequest
getParameterValues
in class javax.servlet.ServletRequestWrapper
strName
- The parameter namepublic Map getParameterMap()
getParameterMap
in interface javax.servlet.ServletRequest
getParameterMap
in class javax.servlet.ServletRequestWrapper
public Enumeration<String> getFileNames()
public Map<String,List<org.apache.commons.fileupload.FileItem>> getFileListMap()
public org.apache.commons.fileupload.FileItem getFile(String strName)
strName
- The file nameCopyright © 2020 City of Paris. All rights reserved.