接口 MultipartHttpServletRequest
- 所有已知实现类:
AbstractMultipartHttpServletRequest
,DefaultMultipartHttpServletRequest
,MockMultipartHttpServletRequest
,StandardMultipartHttpServletRequest
public interface MultipartHttpServletRequest extends HttpServletRequest, MultipartRequest
Provides additional methods for dealing with multipart content within a servlet request, allowing to access uploaded files. Implementations also need to override the standardServletRequest
methods for parameter access, making multipart parameters available.A concrete implementation is
DefaultMultipartHttpServletRequest
. As an intermediate step,AbstractMultipartHttpServletRequest
can be subclassed.- 从以下版本开始:
- 29.09.2003
- 作者:
- Juergen Hoeller, Trevor D. Cook
- 另请参阅:
MultipartResolver
,MultipartFile
,ServletRequest.getParameter(java.lang.String)
,ServletRequest.getParameterNames()
,ServletRequest.getParameterMap()
,DefaultMultipartHttpServletRequest
,AbstractMultipartHttpServletRequest
字段概要
从接口继承的字段 javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 HttpHeaders
getMultipartHeaders(String paramOrFileName)
Return the headers associated with the specified part of the multipart request.HttpHeaders
getRequestHeaders()
Return this request's headers as a convenient HttpHeaders instance.HttpMethod
getRequestMethod()
Return this request's method as a convenient HttpMethod instance.从接口继承的方法 javax.servlet.http.HttpServletRequest
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
从接口继承的方法 org.springframework.web.multipart.MultipartRequest
getFile, getFileMap, getFileNames, getFiles, getMultiFileMap, getMultipartContentType
从接口继承的方法 javax.servlet.ServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
方法详细资料
getRequestMethod
HttpMethod getRequestMethod()
Return this request's method as a convenient HttpMethod instance.
getRequestHeaders
HttpHeaders getRequestHeaders()
Return this request's headers as a convenient HttpHeaders instance.
getMultipartHeaders
HttpHeaders getMultipartHeaders(String paramOrFileName)
Return the headers associated with the specified part of the multipart request.If the underlying implementation supports access to headers, then all headers are returned. Otherwise, the returned headers will include a 'Content-Type' header at the very least.