Package org.mule.apikit.common
Class ExchangePathUtils
java.lang.Object
org.mule.apikit.common.ExchangePathUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractResourceName(String path) Extracts the resource name from a path containing exchange_modules.static StringgetExchangeModulePath(String path) Transforms an exchange_modules path by adjusting the root path structure.static booleanisExchangeModulePath(String path) Checks if the given path contains an exchange_modules pattern.
-
Field Details
-
DEPENDENCY_PATH_PATTERN
-
-
Method Details
-
isExchangeModulePath
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
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
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
-