Class CommonsMultipartUtils
java.lang.Object
org.springframework.web.multipart.commons.CommonsMultipartUtils
Utilities to help adapt the Tomcat Multipart classes to Spring's Commons Multipart implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final booleanisMultipartContent(org.apache.tomcat.util.http.fileupload.RequestContext ctx) Utility method that determines whether the request contains multipart content.
-
Constructor Details
-
CommonsMultipartUtils
public CommonsMultipartUtils()
-
-
Method Details
-
isMultipartContent
public static final boolean isMultipartContent(org.apache.tomcat.util.http.fileupload.RequestContext ctx) Utility method that determines whether the request contains multipart content.
NOTE:This method will be moved to the
ServletFileUploadclass after the FileUpload 1.1 release. Unfortunately, since this method is static, it is not possible to provide its replacement until this method is removed.- Parameters:
ctx- The request context to be evaluated. Must be non-null.- Returns:
trueif the request is multipart;falseotherwise.
-