Class SimplePathInfo
java.lang.Object
org.apache.sling.distribution.resources.impl.common.SimplePathInfo
Path info representing a main resource.
The requestPath = resourcePath + resourcePathInfo
The identified resource can be of three types:
root - resourcePath = resourceRoot
main - resourcePath = resourceRoot + mainResourceName
child - resourcePath = resourceRoot + mainResourceName + childResourceName
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisChild()booleanisMain()booleanisRoot()static SimplePathInfoparsePathInfo(String resourceRoot, String requestPath)
-
Method Details
-
getResourcePathInfo
-
getMainResourceName
-
getChildResourceName
-
isRoot
public boolean isRoot() -
isMain
public boolean isMain() -
isChild
public boolean isChild() -
getResourcePath
-
parsePathInfo
-