Class ExchangePathUtils

java.lang.Object
org.mule.apikit.common.ExchangePathUtils

public class ExchangePathUtils extends Object
  • Field Details

    • DEPENDENCY_PATH_PATTERN

      public static final Pattern DEPENDENCY_PATH_PATTERN
  • Method Details

    • isExchangeModulePath

      public static boolean isExchangeModulePath(String path)
      Checks if the given path contains an exchange_modules pattern.
      Parameters:
      path - the path to check
      Returns:
      true if the path matches the exchange_modules pattern
    • extractResourceName

      public static String extractResourceName(String path)
      Extracts the resource name from a path containing exchange_modules. This method extracts the portion of the path starting from the last occurrence of the exchange_modules pattern.
      Parameters:
      path - the full path containing exchange_modules
      Returns:
      the extracted resource name, or the original path if no pattern is found
    • getExchangeModulePath

      public static String getExchangeModulePath(String path)
      Transforms an exchange_modules path by adjusting the root path structure. This method is used by the interface-impl-v2 implementation.
      Parameters:
      path - the original path
      Returns:
      the transformed path with adjusted root structure