Class StandardServletPartUtils
java.lang.Object
org.springframework.web.multipart.support.StandardServletPartUtils
Utility methods for standard Servlet 
Part handling.- Since:
- 5.3
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidbindParts(HttpServletRequest request, MutablePropertyValues mpvs, boolean bindEmpty) Bind all parts from the given servlet request.static MultiValueMap<String,Part> getParts(HttpServletRequest request) Retrieve all parts from the given servlet request.getParts(HttpServletRequest request, String name) Retrieve all parts with the given name from the given servlet request.
- 
Constructor Details- 
StandardServletPartUtilspublic StandardServletPartUtils()
 
- 
- 
Method Details- 
getPartspublic static MultiValueMap<String,Part> getParts(HttpServletRequest request) throws MultipartException Retrieve all parts from the given servlet request.- Parameters:
- request- the servlet request
- Returns:
- the parts in a MultiValueMap
- Throws:
- MultipartException- in case of failures
 
- 
getPartspublic static List<Part> getParts(HttpServletRequest request, String name) throws MultipartException Retrieve all parts with the given name from the given servlet request.- Parameters:
- request- the servlet request
- name- the name to look for
- Returns:
- the parts in a MultiValueMap
- Throws:
- MultipartException- in case of failures
 
- 
bindPartspublic static void bindParts(HttpServletRequest request, MutablePropertyValues mpvs, boolean bindEmpty) throws MultipartException Bind all parts from the given servlet request.- Parameters:
- request- the servlet request
- mpvs- the property values to bind to
- bindEmpty- whether to bind empty parts as well
- Throws:
- MultipartException- in case of failures
 
 
-