Class PathBuilder
- java.lang.Object
-
- org.apache.sling.api.resource.path.PathBuilder
-
public final class PathBuilder extends java.lang.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(java.lang.String path)
Creates a newPathBuilder
instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathBuilder
append(java.lang.String path)
Appends a new path fragmentjava.lang.String
toString()
Returns the path
-
-
-
Method Detail
-
append
public PathBuilder append(java.lang.String path)
Appends a new path fragment- Parameters:
path
- the path fragment to append- Returns:
- this instance
-
toString
public java.lang.String toString()
Returns the path- Overrides:
toString
in classjava.lang.Object
- Returns:
- the path
-
-