Class MultipartCheck

java.lang.Object
ru.vyarus.dropwizard.guice.test.client.util.MultipartCheck

public final class MultipartCheck extends Object
Utility to check multipart jar presence.

Note: this can't be merged with MultipartSupport as this class should not use any multipart classes directly.

Since:
09.10.2025
  • Method Details

    • isEnabled

      public static boolean isEnabled()
      Returns:
      true if the multipart jar is available
    • getMultipartFeatureClass

      public static Optional<Class<?>> getMultipartFeatureClass()
      Returns:
      multipart feature class or null if jar not available
    • requireEnabled

      public static void requireEnabled()
      Throws:
      IllegalStateException - if the multipart jar is not available