public abstract class MultipartResolutionDelegate
extends java.lang.Object
HandlerMethodArgumentResolver
implementations
which need to resolve MultipartFile
and Part
arguments.Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
UNRESOLVABLE |
Constructor and Description |
---|
MultipartResolutionDelegate() |
Modifier and Type | Method and Description |
---|---|
(package private) static MultipartHttpServletRequest |
asMultipartHttpServletRequest(HttpServletRequest request) |
private static java.lang.Class<?> |
getCollectionParameterType(MethodParameter methodParam) |
static boolean |
isMultipartArgument(MethodParameter parameter) |
private static boolean |
isMultipartContent(HttpServletRequest request) |
private static boolean |
isMultipartFileArray(MethodParameter methodParam) |
private static boolean |
isMultipartFileCollection(MethodParameter methodParam) |
static boolean |
isMultipartRequest(HttpServletRequest request) |
private static boolean |
isPartArray(MethodParameter methodParam) |
private static boolean |
isPartCollection(MethodParameter methodParam) |
static java.lang.Object |
resolveMultipartArgument(java.lang.String name,
MethodParameter parameter,
HttpServletRequest request) |
private static Part |
resolvePart(HttpServletRequest servletRequest,
java.lang.String name) |
private static Part[] |
resolvePartArray(HttpServletRequest servletRequest,
java.lang.String name) |
private static java.util.List<Part> |
resolvePartList(HttpServletRequest servletRequest,
java.lang.String name) |
public static boolean isMultipartRequest(HttpServletRequest request)
private static boolean isMultipartContent(HttpServletRequest request)
static MultipartHttpServletRequest asMultipartHttpServletRequest(HttpServletRequest request)
public static boolean isMultipartArgument(MethodParameter parameter)
public static java.lang.Object resolveMultipartArgument(java.lang.String name, MethodParameter parameter, HttpServletRequest request) throws java.lang.Exception
java.lang.Exception
private static boolean isMultipartFileCollection(MethodParameter methodParam)
private static boolean isMultipartFileArray(MethodParameter methodParam)
private static boolean isPartCollection(MethodParameter methodParam)
private static boolean isPartArray(MethodParameter methodParam)
private static java.lang.Class<?> getCollectionParameterType(MethodParameter methodParam)
private static Part resolvePart(HttpServletRequest servletRequest, java.lang.String name) throws java.lang.Exception
java.lang.Exception
private static java.util.List<Part> resolvePartList(HttpServletRequest servletRequest, java.lang.String name) throws java.lang.Exception
java.lang.Exception
private static Part[] resolvePartArray(HttpServletRequest servletRequest, java.lang.String name) throws java.lang.Exception
java.lang.Exception