Class PathBuilder


  • public final class PathBuilder
    extends Object
    The PathBuilder offers a convenient way of creating a valid path from multiple fragments
    Since:
    1.0.0 (Sling API Bundle 2.11.0)
    • Constructor Detail

      • PathBuilder

        public PathBuilder​(String path)
        Creates a new PathBuilder instance
        Parameters:
        path - the initial path
    • Method Detail

      • append

        public PathBuilder append​(String path)
        Appends a new path fragment
        Parameters:
        path - the path fragment to append
        Returns:
        this instance
      • toString

        public String toString()
        Returns the path
        Overrides:
        toString in class Object
        Returns:
        the path