Class SimplePathInfo
- java.lang.Object
-
- org.apache.sling.distribution.resources.impl.common.SimplePathInfo
-
public class SimplePathInfo extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetChildResourceName()StringgetMainResourceName()StringgetResourcePath()StringgetResourcePathInfo()booleanisChild()booleanisMain()booleanisRoot()static SimplePathInfoparsePathInfo(String resourceRoot, String requestPath)
-
-
-
Method Detail
-
getResourcePathInfo
public String getResourcePathInfo()
-
getMainResourceName
public String getMainResourceName()
-
getChildResourceName
public String getChildResourceName()
-
isRoot
public boolean isRoot()
-
isMain
public boolean isMain()
-
isChild
public boolean isChild()
-
getResourcePath
public String getResourcePath()
-
parsePathInfo
public static SimplePathInfo parsePathInfo(String resourceRoot, String requestPath)
-
-