Class ResourcePathIterator
java.lang.Object
org.apache.sling.resourceresolver.impl.helper.ResourcePathIterator
Iterate over the the HTTP request path by creating shorter segments of that
path using "." as a separator.
For example, if path = /some/stuff.a4.html/xyz.ext the sequence is:
- /some/stuff.a4.html/xyz.ext
- /some/stuff.a4.html/xyz
- /some/stuff.a4
- /some/stuff
The root path (/) is never returned.
-
Constructor Summary
ConstructorsConstructorDescriptionResourcePathIterator
(String path) Creates a new instance iterating over the given path -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ResourcePathIterator
Creates a new instance iterating over the given path- Parameters:
path
- The path to iterate over. If this is empty ornull
this iterator will not return anything.
-
-
Method Details