public class MultipartRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper
MultipartRequest
Constructor and Description |
---|
MultipartRequestWrapper(javax.servlet.http.HttpServletRequest request,
FileUploadFactory fileUploadFactory) |
MultipartRequestWrapper(javax.servlet.http.HttpServletRequest request,
FileUploadFactory fileUploadFactory,
java.lang.String encoding) |
MultipartRequestWrapper(MultipartRequest mpreq) |
Modifier and Type | Method and Description |
---|---|
FileUpload |
getFile(java.lang.String fieldName) |
java.util.Enumeration<java.lang.String> |
getFileParameterNames()
Get an enumeration of the parameter names for uploaded files
|
FileUpload[] |
getFiles(java.lang.String fieldName)
Get a
FileUpload array for the given input field name. |
MultipartRequest |
getMultipartRequest()
Returns
MultipartRequest instance or null if request is not multi-part. |
java.lang.String |
getParameter(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String[]> |
getParameterMap() |
java.util.Enumeration<java.lang.String> |
getParameterNames() |
java.lang.String[] |
getParameterValues(java.lang.String name) |
boolean |
isMultipart()
Returns
true if request is multi-part. |
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
clone, equals, finalize, 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 MultipartRequestWrapper(javax.servlet.http.HttpServletRequest request, FileUploadFactory fileUploadFactory, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public MultipartRequestWrapper(javax.servlet.http.HttpServletRequest request, FileUploadFactory fileUploadFactory) throws java.io.IOException
java.io.IOException
public MultipartRequestWrapper(MultipartRequest mpreq)
public MultipartRequest getMultipartRequest()
MultipartRequest
instance or null
if request is not multi-part.public boolean isMultipart()
true
if request is multi-part.public java.util.Enumeration<java.lang.String> getFileParameterNames()
public FileUpload[] getFiles(java.lang.String fieldName)
FileUpload
array for the given input field name.fieldName
- input field namepublic FileUpload getFile(java.lang.String fieldName)
public java.lang.String getParameter(java.lang.String name)
getParameter
in interface javax.servlet.ServletRequest
getParameter
in class javax.servlet.ServletRequestWrapper
ServletRequest.getParameter(String)
public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
getParameterMap
in interface javax.servlet.ServletRequest
getParameterMap
in class javax.servlet.ServletRequestWrapper
ServletRequest.getParameterMap()
public java.util.Enumeration<java.lang.String> getParameterNames()
getParameterNames
in interface javax.servlet.ServletRequest
getParameterNames
in class javax.servlet.ServletRequestWrapper
ServletRequest.getParameterNames()
public java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues
in interface javax.servlet.ServletRequest
getParameterValues
in class javax.servlet.ServletRequestWrapper
ServletRequest.getParameterValues(String)
Copyright © 2003-present Jodd Team