public final class PathUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
static String | 
getPagePath(org.apache.sling.api.SlingHttpServletRequest request)
Get the page path from a Sling request. 
 | 
static String | 
getPagePath(String path)
Get the page path from a JCR content path. 
 | 
static boolean | 
isContent(String path)
Determine if the given path is a valid content path. 
 | 
static boolean | 
isExternal(String path)
Determine if the given path is external (i.e. 
 | 
static boolean | 
isExternal(String path,
          org.apache.sling.api.resource.ResourceResolver resourceResolver)
Determine if the given path is external by verifying that it corresponds to an existing Sling resource. 
 | 
public static boolean isContent(String path)
path - JCR pathpublic static boolean isExternal(String path)
path - JCR path or external URLpublic static boolean isExternal(String path, org.apache.sling.api.resource.ResourceResolver resourceResolver)
path - JCR path or external URLresourceResolver - Sling resource resolverpublic static String getPagePath(org.apache.sling.api.SlingHttpServletRequest request)
request - sling requestCopyright © 2019 ICF Next. All rights reserved.