Class CommonsMultipartUtils

java.lang.Object
org.springframework.web.multipart.commons.CommonsMultipartUtils

public final class CommonsMultipartUtils extends Object
Utilities to help adapt the Tomcat Multipart classes to Spring's Commons Multipart implementation.
  • 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 ServletFileUpload class 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:
      true if the request is multipart; false otherwise.