org.springframework.web.multipart
Interface MultipartHttpServletRequest

All Superinterfaces:
MultipartRequest
All Known Implementing Classes:
AbstractMultipartHttpServletRequest, DefaultMultipartHttpServletRequest, MockMultipartHttpServletRequest, StandardMultipartHttpServletRequest

public interface MultipartHttpServletRequest
extends MultipartRequest

Provides additional methods for dealing with multipart content within a servlet request, allowing to access uploaded files. Implementations also need to override the standard javax.servlet.ServletRequest methods for parameter access, making multipart parameters available.

A concrete implementation is DefaultMultipartHttpServletRequest. As an intermediate step, AbstractMultipartHttpServletRequest can be subclassed.

Since:
29.09.2003
Author:
Juergen Hoeller, Trevor D. Cook
See Also:
MultipartResolver, MultipartFile, javax.servlet.http.HttpServletRequest#getParameter, javax.servlet.http.HttpServletRequest#getParameterNames, javax.servlet.http.HttpServletRequest#getParameterMap, DefaultMultipartHttpServletRequest, AbstractMultipartHttpServletRequest

Method Summary
 HttpHeaders getMultipartHeaders(java.lang.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.
 
Methods inherited from interface org.springframework.web.multipart.MultipartRequest
getFile, getFileMap, getFileNames, getFiles, getMultiFileMap, getMultipartContentType
 

Method Detail

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(java.lang.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.