Class DependencyPathUtils

java.lang.Object
org.springframework.cloud.zookeeper.discovery.DependencyPathUtils

public final class DependencyPathUtils extends Object
Utils for correct dependency path format.
Since:
1.0.4
Author:
Denis Stepanov
  • Method Details

    • sanitize

      public static String sanitize(String path)
      Sanitizes path by ensuring that path starts with a slash and doesn't have one at the end.
      Parameters:
      path - file path to sanitize.
      Returns:
      sanitized path.