Class PathBuilder
- java.lang.Object
-
- org.apache.sling.api.resource.path.PathBuilder
-
public final class PathBuilder extends Object
ThePathBuilder
offers a convenient way of creating a valid path from multiple fragments- Since:
- 1.0.0 (Sling API Bundle 2.11.0)
-
-
Constructor Summary
Constructors Constructor Description PathBuilder(String path)
Creates a newPathBuilder
instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathBuilder
append(String path)
Appends a new path fragmentString
toString()
Returns the path
-
-
-
Constructor Detail
-
PathBuilder
public PathBuilder(String path)
Creates a newPathBuilder
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
-
-