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, upgradegetAsyncContext, 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, startAsyncequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsyncContext, 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, startAsyncpublic 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.ServletRequestgetParameterNames in class javax.servlet.ServletRequestWrapperpublic String getParameter(String strName)
getParameter in interface javax.servlet.ServletRequestgetParameter in class javax.servlet.ServletRequestWrapperstrName - The parameter namepublic String[] getParameterValues(String strName)
getParameterValues in interface javax.servlet.ServletRequestgetParameterValues in class javax.servlet.ServletRequestWrapperstrName - The parameter namepublic Map getParameterMap()
getParameterMap in interface javax.servlet.ServletRequestgetParameterMap in class javax.servlet.ServletRequestWrapperpublic 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.